You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Joao Maia <jm...@think.eunet.pt> on 2000/12/07 19:31:37 UTC

XML Validation

I'm using Xerces 1.1.1 for parsing and validating XML messages:

(...)
DOMParser messageDomParser = new DOMParser();
try {

messageDomParser.setFeature("http://xml.org/sax/features/validation",true);
  messageDomParser.parse(xpto);

}
catch(Exception except) {
(...)

When a message is invalid I got the errors on the System.out, but I would
like to know how can I get those errors? is there any method that after
parsing I can get a result if the validation was OK or not ? How can I get
does errors "into" a String array (or sort of)?

Thanks
---
Joao Maia
jmmaia@think.eunet.pt

THINK - Tecnologias de Informacao, Lda
Tel: +351.21.3590285
Fax: +351.21.3580006