|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Including Schema inside the XML
Title: RE: Including Schema inside the XML Naren, You can include the location of the schema and its associated targetNamespace at the top of the instance document as follows: <?xml version="1.0"?>
where xsi:schemaLocation indicates the targetNamespace of the schema whose name is given in the second parameter. This indicates that the schema named InvoiceV1.xsd (assumed here to be in the same directory as the instance document, which may not always be the case) has a targetNamespace of "http://www.acme.org/invoices". If the schema does not have a targetNamespace, the declaration would look as follows: <?xml version="1.0"?>
For more information on targetNamespace (and namespaces in general), you can reference chapter 3 of the W3C Schema Primer: http://www.w3.org/TR/2000/CR-xmlschema-0-20001024/ Hope that helps,
> **************************************************************************
-----Original Message-----
Hi,
Naren Koka -----------------------------------------------------------------
The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








