File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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<br />
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
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
I agree. Here's the link:
subject: XML validation
It's not a secret anymore!