Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      This patch adds a new Rule implementation to Digester: NodeCreateRule.
      It can create DOM Element and DocumentFragment nodes that are populated with all
      XML content contained by the matching element, and pushed on Digester's object
      stack.

      A use case for this would be: you want to process XML documents that allow "ANY"
      content under certain nodes. Using a NodeCreateRule, Digester can capture that
      information in a DOM node for further processing by the application.
      Specifically, I've needed this feature for WebDAV XML request processing, but
      there has also been a related request on the commons-user list.

      Included in the patch is the NodeCreateRule class with full javadocs, as well as
      a corresponding test-case and a modification to build.xml to include that test-case.

      NOTE: this enhancement depends on the enhancement request in COM-182.

      [I've already posted this patch to commons-dev - adding it here to so that it
      doesn't get lost]

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Christopher Lenz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development