Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-88

Add getPrefix(String namespaceURI) to JXPathContext

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: