[xml] equivalent to xmlGetNodePath including properties?



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]