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

        Hide
        Matt Benson added a comment -

        Seems harmless... the needed code to implement in RI is already there.

        Show
        Matt Benson added a comment - Seems harmless... the needed code to implement in RI is already there.
        Hide
        Matt Benson added a comment -

        svn rev 546990

        Show
        Matt Benson added a comment - svn rev 546990

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development