Hello,

I download the Xerces 1.2.3. version and I am trying some simple
XML and DTD files. I read that you can choose whether to validate or not
an XML document, even although it has a reference to a DTD.
That's exactly what I am looking for, but when I try:
parser.setFeature("http://xml.org/sax/features/validation";, false);
It continues validating the document.
I am using the parser:
String parserToUse = "org.apache.xerces.parsers.SAXParser";
XMLReader parser = XMLReaderFactory.createXMLReader(parserToUse);
I am trying to do this, because I am writing an aplication for updating a
table in a DB with the information of the XML document, and I would like
to know if the entire document is valid, before starting the process;

Could anybody help me?,

Thanks in advance,

Antonio Rey.


Reply via email to