commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mcduffey, Joe" <jdmc...@nsa.gov>
Subject RE: Problem with JXPath 1.3 - Registering Namespaces
Date Wed, 25 Jul 2007 13:55:17 GMT
This still doesn't work properly see previous message from 7/20/07...

------------------   FROM PREVIOUS MESSAGE ------------------
After registering Namespaces in JXPath 1.3 and then calling JXPathContext.createPathAndSetValue(key,value)
I get an exception
Unknown namespace prefix

However it had been successfully registered as I checked with the method call JXPathContext.getPrefix();

Any help in this area???? 
------------------   FROM PREVIOUS MESSAGE ------------------

-----Original Message-----
From: Sergey Vladimirov [mailto:vlsergey@gmail.com]
Sent: Saturday, July 21, 2007 10:12 AM
To: Jakarta Commons Users List
Subject: Re: Problem with JXPath 1.3 - Registering Namespaces


Joe,

Please, look at the following issue and fix :)
http://issues.apache.org/jira/browse/JXPATH-97

-- 
Sergey


2007/7/16, 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.
>
>


-- 
Sergey Vladimirov

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message