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 Validate XML against XSD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Validate XML against XSD" Watch "Validate XML against XSD" New topic
Author

Validate XML against XSD

Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Hi I was trying to validate a XML document against XSD.

Everything is fine if that XSD is a very simple XSD. But if my XSD includes some other XSD's also as mentioned below as an example this program is not functioning.

<xs:include schemaLocation="ABC.xsd"


I am also attaching code which I used to validate.



Could anyone let me know, if I need to use something else to validate XML against complex XSD's. Any insight would be appreciated.>


The Best way to predict your future is to create it - Every great individual common man
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Validate XML against XSD
 
Similar Threads
XML schema validation program error
validating xml
all validation error using saxParser
XSD Validation using DOMSource isn't working in Java6
Problem validating XML against XSD using JDK1.4