startElement is not closed when comment is written

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: