[jdom-interest] about xpath

felix romero01 at supercable.es
Tue May 22 10:30:24 PDT 2001


Using an expression over this xml:

 <Attribute Nasme="no">
  <value order='1' type='jpg'>mastercard</value>
  <value order='1' type='gif'>visa</value>
  <value order='2' type='gif'>unibank</value>
 </Attribute>

How can I get the node <value order='1' type='gif'>visa</value>,
because if I put the xpath expression /Attribute[@Nasme='no']/value[@order='1'], I get:

  <value order='1' type='jpg'>mastercard</value>
  <value order='1' type='gif'>visa</value>

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010522/ff794c73/attachment.htm


More information about the jdom-interest mailing list