sjsxp issue 47 : XMLStreamReader.standaloneSet() implemented wrong

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 6
    • Component/s: xml
    • 1.4
    • generic
    • generic
    • Verified

        As a comment in XMLReaderImpl#standaloneSet() already notes, return value is
        incorrect. It should only denote whether input document has a value for
        'standalone' xml declaration pseudo-attribute; not whether it has and value is
        'yes' (for latter there is XMLStreamReader.isStandalone() method).

        It looks like underlying parser implementation does not keep track of this
        information, so there may not be a trivially easy fix. Hopefully not too hard to
        fix though.

              Assignee:
              Joe Wang
              Reporter:
              Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: