equivalent to xmlGetNodePath including properties?

View: New views
1 Messages — Rating Filter:   Alert me  

equivalent to xmlGetNodePath including properties?

by slyght :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to know if there's an equivalent to xmlGetNodePath() which also includes elements propoerties in returned xpath expression.

Example:
<foo id="1">
  <bar id="0"/>
</foo>
<foo id="2">
  <bar id="0"/>
</foo>

So I would like to get /foo[@id='1']/bar[@id='0'] instead of just /foo/bar in case I give a reference to the first "bar" to the function. Otherwise I wouldn't be able to get an unambiguous result when using this xpath expression with xmlXpathEvalExpression.

Kind regards

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@...
http://mail.gnome.org/mailman/listinfo/xml