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

Add getPrefix(String namespaceURI) to JXPathContext

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2 Final
    • 1.3
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: