wood burning stoves*
The moose likes XML and Related Technologies and the fly likes validate xml using xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "validate xml using xsd" Watch "validate xml using xsd" New topic
Author

validate xml using xsd

kavitha vasu
Ranch Hand

Joined: Feb 22, 2007
Posts: 70
hi all,

am having one xml file and xsd for that file .


now i want to test whether the created xsd is correct one for the XML file or not.


How can i do in java?

or oracle jdeveloper
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12755
    
    5
See the javax.xml.validation package - the JavaDocs have enough information for you to write a program.

Bill
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

And also, the Ranch has an XML FAQ page which includes HowToValidateXmlAgainstAnySchema.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validate xml using xsd
 
Similar Threads
XML Editor
Genrating xml from the given xsd
Can I check whether a particular pattern of character is there in the attribute
How to marshal a xml file validate with XSD file
Validating input data passed to web service