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

startElement is not closed when comment is written

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • xml
    • b61
    • x86
    • windows_xp

      When using StAX Writer APIs a code is executing in a sequence like the following:
         writeStartElement(...)
         writeAttribute(...)
         writeComment(...)
         writeCharacters(...)

      The problem is that in the resulting XML, the generated comment is *inside* the element header
         <a b=c <!--comment-->>characters

            nbajajsunw Neeraj Bajaj (Inactive)
            nbajajsunw Neeraj Bajaj (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: