I'm parsing XML documents with a stylesheet processing instruction. The XML
documents may be valid or not.

TransformerFactory tfactory = TransformerFactory.newInstance();
SAXSource documentSAXSource = new SAXSource(new InputSource(new
StringReader(xmlString)));
Source stylesheetSource = tfactory.getAssociatedStylesheet(documentSAXSource,
null, null, null);

When the documents are not valid, I get log messages like "[Fatal Error]
loose.dtd:31:3: The declaration for the entity "HTML.Version" must end with
'>'."

How can I disable those messages?

Reply via email to