|
|
Subject:
Parsing XML with Schemas and Java
Category: Computers > Programming Asked by: memphisblues-ga List Price: $10.00 |
Posted:
12 Dec 2003 07:52 PST
Expires: 12 Dec 2003 12:34 PST Question ID: 286331 |
Google Answers - I'm working on a software application that requires XML validation with a W3C schema. The question: what is the easiest way to parse an XML string (in Java) and validate it against a schema? Ideally, I'd like to see something like this (just pseudo-code): String xmlData... String xmlSchema... Parser parser = new Parser(xmlData); SchemaErrors errors = parser.validate(xmlSchema); // now do something with all of the errors The crucial components are: a) commercial-grade libraries; b) in memory Java parsing (i.e. not command line); and, c) handling multiple errors within a document (i.e. does not exit at first error). Currently, we're using dom4j as the parsing engine, but other commercial-grade (e.g. Xerces) parsers would be acceptable. Josh | |
| |
| |
|
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |