Hi!
I have a problem, I want to select the number of elements within an element.
All I need is the number (count), and I just want to it once for "one row" so to speak.
Picture this XML file:
<start-para>
<heading>Head Text</heading>
<heading>Some text</heading>
<line>
<element>
<para>What ever</para>
</element>
<element>
<para>
Text text text
</para>
</element>
</line>
<line>
<element>
<para>
Text text text
</para>
</element>
<element->
<para>
Text text text
</para>
</element>
</line>
<line>
<element>
<para>What ever 2</para>
</element>
<element>
<para>
Text text text
</para>
</element>
</line>
</start-para>
Now, what I precisely want to do is to select the number, count, of "<element>" tags occuring inside the "<line>" tags. The number should in this case result in 2, since it occurs two times within "<line>".
I've tried all sorts of counting, positioning, and so on.
Any help or solutions would be very appreciated.
Thanks in advance
Marko