This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML validation" Watch "XML validation" New topic
Author

XML validation

Venkata Pavan Kumar vemuri
Greenhorn

Joined: Feb 01, 2010
Posts: 14
I am validating an XML file against a schema, I want to give the schema location in the XML file rather than giving it as an argument to the program

But when I am giving the schema location in the XML file I am getting the following error



org.xml.sax.SAXParseException: Document is invalid: no grammar found.

Here is the line which I included in the XML file for mentioning the Schema location

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file://c:/Schemas/OracleCatalog.xsd"

Can anyone please help me in finding a solution for this problem?

Thanks in advance
 
wood burning stoves
 
subject: XML validation
 
Similar Threads
JAXB namespace issue
Unable to validate XML against the schema
XML Schema Help
Schema Location H*ll
How to Get the name of the Schema