Jagadish,

XML parsers are required to check well-formedness [1]. Xerces provides no
way to disable it. Even the DOM L3 Load and Save specification [2] forbids
it.

Thanks.

[1] http://www.w3.org/TR/2006/REC-xml-20060816/#sec-conformance
[2]
http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/ls/LSParser.html#getDomConfig()

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

"Vemugunta, Jagadish" <[EMAIL PROTECTED]> wrote on 11/17/2008
01:01:55 PM:

> Hi,
>
> I want to disable "well-formed" check using either DOM/SAX parser?
> Is there a way to do it with Xerces?
>
> The DomConfiguration has the well-formed disable option, but seems
> to be not working.
> http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/DOMConfiguration.html
>
> Can anybody help on this?
>
> Thanks,
> Jagadish

Reply via email to