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

Using Spin I can use namespaces in XPath

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.3.0, 7.3.0-alpha1
    • None
    • spin

      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)

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: