This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML Schema Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML Schema Error" Watch "XML Schema Error" New topic
Author

XML Schema Error

Rick Salsa
Ranch Hand

Joined: Jul 17, 2001
Posts: 173
Can someone give me a hand with this error I'm getting? I have a simple xml file that is to be validated against an XML schema file. The errors I'm getting are:
Document root element "email", must match DOCTYPE root "null". line 5 column 75 - email.xml
Document is invalid: no grammar found. line 5 column 75 - email.xml
I'm assuming that it can't find the xsd file? The are both in the same directory.
Here is the code for each:


Thanks for any help
/rick
Rick Salsa
Ranch Hand

Joined: Jul 17, 2001
Posts: 173
I don't know if this has to do with the Xerces Parser? I went and downloaded XML Spyand validated my xml file in there and it worked. So now I wonder if there is something about Xerces that didn't like the XML Schema??
/rick
arun sharma
Greenhorn

Joined: Jul 02, 2003
Posts: 19
same error i am also getting..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Schema Error
 
Similar Threads
XML Schema Problem
Doubt on XML Schema validity
Defining XSD for an XML file with constraint on the contents of a tag
regarding xml syntax
how do I set xsd element attributes?