P
Peter Fitzgibbons
Hello all,
I'm using REXML to build some XML from a rails app. I'm unit testing
the output also using REXML... and I have these questions :
Given
<a>
<b>one</b>
<c>two</c>
<d>
<e>three</e>
<f>four</f>
</d>
</a>
I want to use XPath to tell me how many <d> there are under <a> ?
I want to use XPath to iterate the _names_ of the items under <d>
(Does this make sense in XML World. This one is not necessarily a
requirement, but I uncovered this need while experimenting in IRB.) ?
Thanks in advance!
Peter Fitzgibbons
I'm using REXML to build some XML from a rails app. I'm unit testing
the output also using REXML... and I have these questions :
Given
<a>
<b>one</b>
<c>two</c>
<d>
<e>three</e>
<f>four</f>
</d>
</a>
I want to use XPath to tell me how many <d> there are under <a> ?
I want to use XPath to iterate the _names_ of the items under <d>
(Does this make sense in XML World. This one is not necessarily a
requirement, but I uncovered this need while experimenting in IRB.) ?
Thanks in advance!
Peter Fitzgibbons