File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes validating xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "validating xml" Watch "validating xml" New topic
Author

validating xml

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 744
i have got one xml and one xsd,

note.xml



note.xsd

Now i am trying to validate the xml using the code given in Java Ranch FAQ.

but i am getting the following error.
please help me solving this error.


XmlValidator.java



Error stack trace.



it seems like my xml is valid according to xsd but it still says that the note element is there in the xml.

please let me know if i am misunderstanding something, as i am new to xml and xsd.

Thanks & Regards,


Jigar Naik


 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: validating xml
 
Similar Threads
unexpected child element xs:element error??
Validating a xml doc against schema
how to validate xml using local xsd
Help me for xsd creation
Question about generating XSD