commons-user mailing list archives

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

Using JXPath 1.2, I am trying to retrieve all attributes of an XML element:
the element is something like <element 
xmlns: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...



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message