A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
XML and Related Technologies
JIBX validate the structure of input xml file before unmarsalling it?
Joined: Dec 24, 2010
Dec 24, 2010 18:24:01
1. The validation is mainly validate the structure of input xml file. I need to qulify whether the xml has a correct format for parsering.
2. Besides, I need to print the error message for the error elements in xml file.
I serach some method that use XSD to validate xml file. But, I don't know how to implement it.
Joined: Apr 08, 2004
Dec 25, 2010 00:12:31
JIBX does not support Schema validation. If you want strict Schema validation, then use JAXB / XML Beans data binding frameworks.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Dec 25, 2010 08:48:14
There is no reason you could not read the file twice, once for validation and then again with JIBX.
Check out the javax.xml.validation package.
subject: JIBX validate the structure of input xml file before unmarsalling it?
how to validate xml by using external dtd
Question on JAXB Validation
xml validation agains xsd
what's XML parser?
Doubt on DTD
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015