You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2007/06/13 20:08:26 UTC

[jira] Commented: (JXPATH-88) Add getPrefix(String namespaceURI) to JXPathContext

    [ 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org