commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JXPATH-97) Incomplete handling of undefined namespaces
Date Mon, 23 Jul 2007 21:59:31 GMT

     [ https://issues.apache.org/jira/browse/JXPATH-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Benson resolved JXPATH-97.
-------------------------------

    Resolution: Fixed

elements handled.

> Incomplete handling of undefined namespaces
> -------------------------------------------
>
>                 Key: JXPATH-97
>                 URL: https://issues.apache.org/jira/browse/JXPATH-97
>             Project: Commons JXPath
>          Issue Type: Bug
>    Affects Versions: Nightly Builds, 1.2 Final
>            Reporter: Sergey Vladimirov
>             Fix For: 1.3
>
>         Attachments: NamespacesTest.java, patch.txt
>
>
> Mcduffey, Joe <jdmcduf@nsa.gov>
> Can someone tell me how to register namespaces so that attributes with namespaces does
not cause the exception
> org.apache.common.ri.model.dom.DOMNodePointer.createAttribute
> unknown namespace prefix: xsi
> For example the following
> <ElementA  A:myAttr="Mytype">
>   <B:ElementB>MY VALUE</B:ElementB>
> </ElementA>
> Would result in the following exception:
> org.apache.common.ri.model.dom.DOMNodePointer.createAttribute
> unknown namespace prefix: A
> FYI: In this example there was a namespace decaration in the file and I also manually
called the
> registerNamespace(A,"/http...");
> registerNamespace(B,"/http...");
> There was no problem encountered for elements. Only attributes. Can someone help? Thanks.

-- 
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


Mime
View raw message