Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
XML and Related Technologies
JIBX validate the structure of input xml file before unmarsalling it?
dong zhang
Greenhorn
Posts: 2
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Thanks.
kri shan
Ranch Hand
Posts: 1491
posted 14 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
JIBX does not support Schema validation. If you want strict Schema validation, then use JAXB / XML Beans data binding frameworks.
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
posted 14 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
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.
Bill
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to validate xml by using external dtd
Question on JAXB Validation
xml validation agains xsd
what's XML parser?
Doubt on DTD
More...