Commons JXPath
  1. Commons JXPath
  2. JXPATH-88

Add getPrefix(String namespaceURI) to JXPathContext

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      There is function getNamespaceURI(String prefix), but there is no inverted one.

      Need this in following case:

      • reading XML
      • check, if prefix for particular namespace is defined (using getPrefix)
      • if defined - using prefix, specified in XML
      • if not defined - define prefix and using it

      Usual way - to define prefix always - is not good, since prefix can already be used in XML file with another namespace.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sergey Vladimirov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development