Woodstox
  1. Woodstox
  2. WSTX-285

Add ability to restrict certain size limits of parsed XML

    Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Labels:
      None
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      1

      Description

      It would be nice to have the ability to restrict certain size aspects of the parsed XML. Things like the maximum depth, the number of child elements/attributes, etc... Some of this can be done as a wrapper to XMLStreamReader, but that imparts a performance penalty. Since Woodstox is already tracking much of that internally, it can handle it much more efficiently.

      Patch supplied.

        Activity

        Hide
        Daniel Kulp added a comment -


        Updated patch with the ability to restrict the number of characters read as well.

        Show
        Daniel Kulp added a comment - Updated patch with the ability to restrict the number of characters read as well.
        Hide
        Tatu Saloranta added a comment -

        Merged in trunk (5.0), and new 4.2 branch (for 4.2.0)

        Show
        Tatu Saloranta added a comment - Merged in trunk (5.0), and new 4.2 branch (for 4.2.0)

          People

          • Assignee:
            Tatu Saloranta
            Reporter:
            Daniel Kulp
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: