M
Markus
Currenty I'm parsing a XML in this way:
....
try {
m_builder = new SAXBuilder(a_b_validate);
m_builder.setFeature("http://apache.org/xml/features/validation/schema",
a_b_validate);
m_document = m_builder.build(a_inputStreamXML);
m_builder.setErrorHandler(m_SAXErrorHandler);
m_rootElement = m_document.getRootElement();
catch (JDOMException e){
System.out.println(e.getMessage());
} ...
If a_b_validate = false there is no Exception if the Document is
wellformed.
If a_b_validate = true and there are errors in the file I get the first
occured error in e.
Is there a posibillity to get all errors against the XSD at the first
parse?
Greetings
Markus
....
try {
m_builder = new SAXBuilder(a_b_validate);
m_builder.setFeature("http://apache.org/xml/features/validation/schema",
a_b_validate);
m_document = m_builder.build(a_inputStreamXML);
m_builder.setErrorHandler(m_SAXErrorHandler);
m_rootElement = m_document.getRootElement();
catch (JDOMException e){
System.out.println(e.getMessage());
} ...
If a_b_validate = false there is no Exception if the Document is
wellformed.
If a_b_validate = true and there are errors in the file I get the first
occured error in e.
Is there a posibillity to get all errors against the XSD at the first
parse?
Greetings
Markus