Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4546085

DocumentBuilderFactory.setIgnoringComments() doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.2.0
    • xml
    • 1.2.0
    • 1.2.0
    • sparc
    • solaris_8
    • Verified

      tag info: xalan-j_2_2_d11, Xerces-J_2_0_0_beta3

      If I have
      <?xml version="1.0"?>
      <note>
      <to>Tove</to>
      <body><!--hello--></body>
      </note>
       
      and I set setIgnoringComments(true). After parser, I expect to get 0 child node under <body). Using xerces2, I get 1 childnode "hello".

      See attachment to reproduce

            egoei Edwin Goei (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: