The namespace agnostic syntax I've seen around is confusing me.
Say I have:
<root>
<parent attribute="A">A<child>A</child></parent>
<parent attribute="B">B<child>B</child></parent>
</root>
So far I see how:
/root/parent/child/text()
translates to:
/*[local-name()='root']/*[local-name()='parent']/*[local-name()='child']/text()
but i'm struggling with things like this:
/root/parent[@attribute="A"]/child/text()
or:
/root/parent[text()="B"]/child/text()
or:
/root/parent[1]/child/text()
How do these translate?
Thanks,
EDIT: One More :-)
<root>
<parent>
<childName>serverName</childName>
<childValue>MyServer</childValue>
</parent>
<parent>
<childName>ServerLocation</childName>
<childValue>Somewhere</childValue>
</parent>
</root>
How does this translate?
/root/parent[childName="serverName"]/childValue/text()