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

validation

Rob Bass
Ranch Hand

Joined: Aug 28, 2001
Posts: 67
currently is there any Java API that will validate an XML file against an XML Schema?
L Goundalkar
Ranch Hand

Joined: Jul 05, 2001
Posts: 395
Hi,
I think Java Architecture for XML Binding (JAXB) will be useful. But I am not sure how far it is Schema Validation. Because when you use this, it validates the XML file against the Schema which is a DTD. If the XML doesn't bind to the DTD provided the the Java files are not at all created.
In the later versions of this, other Schema languages are supported.(yet to be released.
Thanks.

------------------
L Goundalkar
lggoundalkar@hotmail.com
Sun Certified Programmer for Java 2 Platform


SCJP, SCWCD
Rob Bass
Ranch Hand

Joined: Aug 28, 2001
Posts: 67
We are working on a very large scale program, there is no way we can justify telling client that the heart of the program will be in an early release API that does not support XML Schemas.
I think Xerces 1.42 support XML Schema validation?
Originally posted by L Goundalkar:
Hi,
I think Java Architecture for XML Binding (JAXB) will be useful. But I am not sure how far it is Schema Validation. Because when you use this, it validates the XML file against the Schema which is a DTD. If the XML doesn't bind to the DTD provided the the Java files are not at all created.
In the later versions of this, other Schema languages are supported.(yet to be released.
Thanks.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation