wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Validing xml against Schemas using JDOM 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 "Validing xml against Schemas using JDOM" Watch "Validing xml against Schemas using JDOM" New topic
Author

Validing xml against Schemas using JDOM

Vicky Bajaj
Greenhorn

Joined: Jun 30, 2003
Posts: 11
Hi,
I have to validate a XML document against Schema using JDOM API. Can anyone tell me or send me the example code for this. I have got some code from www.jdom.org but when I follow the same thing in my code it says
"org.jdom.JDOMException: Error on line 2 of document file:///D:/Demo.xml: cvc-elt
.1: Cannot find the declaration of element 'Demo'."
my XML file name is Demo.xml
and Schema name is Demo.xsd
If anyone can help.
Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validing xml against Schemas using JDOM
 
Similar Threads
How to validate XML against DTD / Schema using DOM
Looking for correct data type to take in stream of xml
ftp question
Is JDOM superior to JAXP ?
How to validate XML against DTD / Schema using DOM