[ 
https://issues.apache.org/jira/browse/JXPATH-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504358
 ] 

Matt Benson commented on JXPATH-88:
-----------------------------------

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

> Add getPrefix(String namespaceURI) to JXPathContext
> ---------------------------------------------------
>
>                 Key: JXPATH-88
>                 URL: https://issues.apache.org/jira/browse/JXPATH-88
>             Project: Commons JXPath
>          Issue Type: Improvement
>    Affects Versions: 1.2 Final
>            Reporter: Sergey Vladimirov
>            Priority: Minor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to