Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-329

StAXOMBuilder omits setting for the namespace that is bound to xml prefix

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94
    • Component/s: om
    • Labels:
      None
    • Environment:
      Ubuntu Linux 5.04, Java 1.4.2_09,Eclipse 3.0.2

      Description

      StxOMBuilder omits the settings for the namespace that is bound to the xml prefix. Hence it always return NULL for any attribute value which is bound to that namespace.

      e.g.
      <wsp:Policy xml:base="uri:thisBase"
      xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
      ...
      </wsp:Policy>

      The attribute 'xml:base' always returns as NULL in the corresponding OMElement. The namespace bound to xml prefix is fixed and should be wired in any parser that is namespace aware.

        Activity

        Hide
        ruchith Ruchith Udayanga Fernando added a comment -

        Fixed the findDeclaredNamespace method in OMElementImpl to recognize the "xml" prefix and "http://www.w3.org/XML/1998/namespace" namespace.

        Show
        ruchith Ruchith Udayanga Fernando added a comment - Fixed the findDeclaredNamespace method in OMElementImpl to recognize the "xml" prefix and "http://www.w3.org/XML/1998/namespace" namespace.

          People

          • Assignee:
            ruchith Ruchith Udayanga Fernando
            Reporter:
            sanka Sanka Samaranayake
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development