XDK: DocumentBuilderFactory does not Honor setIgnoringComments()
(Doc ID 1379629.1)
Last updated on JANUARY 30, 2022
Applies to:
Oracle XML Developers Kit - Version 11.2.0.3 and laterInformation in this document applies to any platform.
Symptoms
The DocumentBuilderFactory created by JXDocumentBuilderFactory does not honor the setting setIgnoringComments(true). The code below will print a comment node if run with xmlparserv2.jar in the classpath.
Example code - XMLParserTest.java:
1. Compile the code using:
Sample Output:
Factory=oracle.xml.jaxp.JXDocumentBuilderFactory@35d9dc39
Builder=oracle.xml.jaxp.JXDocumentBuilder@2a0ecd7e
- Item:test=null
- Item:#comment= comment
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |