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

DocumentBuilderFactory.setIgnoringComments() doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      1.2.0
    • Introduced In Version:
    • Resolved In Build:
      1.2.0
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: