You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by 박휘석 <hs...@esumtech.com> on 2001/06/04 03:28:46 UTC

About Validation

Hello..
I am studying about Xerces1.3.1 to Handling XML with DTD/Schema.
Yesterday, I found a little strange thing about validation just this;

DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation",true);
parser.parse(filepath);
Document doc = parser.getDocument();
Element root = doc.getDocumentElement();

You know, if XML data structure is different with DTD/Schema,
I expect to occur validation error.. but it passed without any error.

How can I test of validation?