[xml] equivalent to xmlGetNodePath including properties?
- From: Frank Reich <slyght82 googlemail com>
- To: xml gnome org
- Subject: [xml] equivalent to xmlGetNodePath including properties?
- Date: Tue, 13 Oct 2009 11:23:14 +0200
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]