Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2342

Using Spin I can use namespaces in XPath

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3.0, 7.3.0-alpha1
    • Component/s: spin
    • Labels:

      Description

      AT:

      • I can provide namespaces in XPath query:

      xmlString = '''
      <customer>
      <aaa:foo aaa:xmlns="http://test.org/aaa">bar</aaa:foo>
      </customer>
      '''

      S( xmlString ).xPath("/customer/a:foo")
      .ns("a", "http://test.org/aaa")
      .element()

      The query will build an javax.xml.namespace.NamespaceContext and provide it to the xpath execution (implements confirming java doc)

        Activity

        Show
        meyer Daniel Meyer added a comment - http://www.ibm.com/developerworks/library/x-nmspccontext/

          People

          • Assignee:
            sebastian.menski Sebastian Menski
            Reporter:
            meyer Daniel Meyer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development