You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Jean-Baptiste REURE <jb...@allette.com.au> on 2005/04/18 09:46:52 UTC

JXPath question

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