commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste REURE <jbre...@allette.com.au>
Subject JXPath question
Date Mon, 18 Apr 2005 07:46:52 GMT
Hi,

Using JXPath 1.2, I am trying to retrieve all attributes of an XML element:
the element is something like <element 
xmlns:xlink="http://www.w3.org/1999/xlink" xlink:show="new" 
xlink:type="simple" id="0001" />
the xpath used is element/@*.
This however returns only the attribute 'id'. I tried to play around 
with the xpath (element/attribute::node() and other tests) but to no 
avail. I also tried to set the Namespace Context Pointer to different 
values (the element itself, its parent where the namespace URI was also 
declared...) but no changes.
Any help would be appreciated, I believe I am doing something wrong but 
can't figure it out...

Thanks,

JB.


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