This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xml schema validation, is it a dream ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml schema validation, is it a dream ?" Watch "xml schema validation, is it a dream ?" New topic
Author

xml schema validation, is it a dream ?

Christophe Grosjean
Ranch Hand

Joined: Jan 22, 2002
Posts: 51
Please help me... I'm searching since a lot of time of to perform validation of an xml document according to an xml schema, using xerces...
I know how to write the java class... but how can I reference the xml schema from inside the xml file because the parser is constantly giving me the same response :
http://www.xml-schema.com/examples/schema/Editor grammar not found

Here are my files header :
XML :
xmlns="http://www.xml-schema.com/examples/schema/Editor"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xml-schema.com/examples/schema/Editor
http://www.xml-schema.com/examples/schema/editor.xsd">
XSD :
<schema targetNamespace="http://www.xml-schema.com/examples/schema/Editor"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:e="http://www.xml-schema.com/examples/schema/Editor"
elementFormDefault="qualified">
If I have my xml schema on my local hard drive, how to reference it from the xml ??
Well, please take time to read and answer my message... I found some examples on internet but I can't make them working..
Christophe
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: xml schema validation, is it a dream ?
 
It's not a secret anymore!