How do I indicate to the Xeres parser the location of my XML schema? Do I need to provide the location of my XML schema inside the XML file?

Shuchi Agarwal

If you have built a schema with the name say as contact.xsd and with a root element of contactdb then inside the xml file you need to

<contactdb xmlns:xsi="" xsi:noNamespaceSchemaLocation="contact.xsd">

or if it is a relative URL

<xmlns:xsi ="" xsi:schemaLocation= "">

where the url is the relative path or the document root of a web server.The schema processor should also be in the classpath of your JVM/servlet engine etc.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact