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

[digester] [PATCH] NodeCreateRule does not correctly handle namespaced attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.8
    • None
    • Operating System: All
      Platform: All

    • 36773

    Description

      Attributes within namespaces do not have their prefix preserved within the
      NodeCreateRule when Digester is namespace aware. This is because
      element.setAttributeNS is called with the incorrect parameters. Fixed by
      passing in URI, QualifiedName and Value instead of URI, LocalName and Value.

      -Changed NodeCreateRule.begin to call setAttributeNS with qualified name
      -added junit test NodeCreateRuleTestCase.testNamespacedAttribute
      -added test xml file: Test10.xml

      Attachment patch in cvs universal diff format.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kzettel@spheris.com Kurt Zettel II
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: