Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-81

New rule to build DOM nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • None
    • None
    • Operating System: All
      Platform: All

    • 13023

    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]

      Attachments

        Activity

          People

            Unassigned Unassigned
            cmlenz Christopher Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: