stax-utils
  1. stax-utils
  2. STAX_UTILS-1

Adding xmlpull API wrappers on top of StAX stream reader/writer

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      1

      Description

      To support interoperability, and allow quick bootstrapping of StAX
      implementations, it might be useful to have wrappers that can adapt StAX
      implementations to be used via xmlpull (http://www.xmlpull.org/) API.
      Wrapper implementation should be fairly straight-forward as two APIs have same
      model and are related (Xmlpull being predecessor of StAX).

        Activity

        Hide
        cowtowncoder added a comment -

        Created an attachment (id=1)
        Implementation og RFE

        Show
        cowtowncoder added a comment - Created an attachment (id=1) Implementation og RFE
        Hide
        cowtowncoder added a comment -

        I also added implementation for the RFE. Some notes:

        • src/resources/org.xmlpull.v1.XmlPullParserFactory is useful when building jars
          that should plug-in as default implementations (in this case of Xmlpull).
          To use that, build.xml may need to be modified slightly.
        • I didn't add specific copyright/license info, just author info, so that standard
          boilerplate stuff can be added.
        • There exists conformance tests for xmlpull; my wrapper implementation gets 50%
          pass rate (with woodstox stax parser): this is fairly close to maximum due to
          some incompatibilities between APIs (Xmlpull does much
          more aggressive coalescing of events, StAX
          has no method for checking if a start element is empty element).
          Test(s) could also be added to stax-utils if that seems reasonable.
        Show
        cowtowncoder added a comment - I also added implementation for the RFE. Some notes: src/resources/org.xmlpull.v1.XmlPullParserFactory is useful when building jars that should plug-in as default implementations (in this case of Xmlpull). To use that, build.xml may need to be modified slightly. I didn't add specific copyright/license info, just author info, so that standard boilerplate stuff can be added. There exists conformance tests for xmlpull; my wrapper implementation gets 50% pass rate (with woodstox stax parser): this is fairly close to maximum due to some incompatibilities between APIs (Xmlpull does much more aggressive coalescing of events, StAX has no method for checking if a start element is empty element). Test(s) could also be added to stax-utils if that seems reasonable.

          People

          • Assignee:
            stax-utils-issues
            Reporter:
            cowtowncoder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: