M
Mariusz Sieraczkiewicz
I have three variables: a, b, c.
And sample XML tree :
<parents>
<parent>
<child1>ssfd</child1>
<child2>dfoi</child2>
<child3>dijf</child3>
</parent>
............
<parent>
<child1>s34d</child1>
<child2>d44i</child2>
<child3>d342</child3>
</parent>
<parents>
how to write XPath expression that
returns the value of the child named c,
having sibling named a with value of b.
The start point is the 'parents' element.
Sample a = 'child1', b = 's34d', c='child3'
returns d342.
Regards.
And sample XML tree :
<parents>
<parent>
<child1>ssfd</child1>
<child2>dfoi</child2>
<child3>dijf</child3>
</parent>
............
<parent>
<child1>s34d</child1>
<child2>d44i</child2>
<child3>d342</child3>
</parent>
<parents>
how to write XPath expression that
returns the value of the child named c,
having sibling named a with value of b.
The start point is the 'parents' element.
Sample a = 'child1', b = 's34d', c='child3'
returns d342.
Regards.