|
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? |
- RE: About Validation... 박휘석
- RE: About Validation... Tung Mansfield
