[Home] [By Thread] [By Date] [Recent Entries]
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
|

Cart



