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 validation 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 validation" Watch "XML validation" New topic
Author

XML validation

Kejal Shah
Ranch Hand

Joined: Jun 27, 2003
Posts: 87
Given an XML and an XML Schema, what's the best technique to validate the XML using Java?

Tx in adv
Kejal


Kejal<br />SaneDevil@gmail.com
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Take a look at the JAXP API. The version that comes with Java 1.5 can do validation using schemas; if you have an older version of Java you can download the latest JAXP from dev.java.net.
 
Have you checked out Aspose?
 
subject: XML validation
 
It's not a secret anymore!