G
Gerald Aichholzer
Hello NG,
I have an XML document looking similiar to:
<document>
<section>
<group>
<symbol>...</symbol> <!-- n=1 -->
<symbol>...</symbol> <!-- n=2 -->
...
<symbol>...</symbol> <!-- n=x -->
</group>
<symbol>...</symbol> <!-- n=x+1 -->
<symbol>...</symbol> <!-- n=x+2 -->
...
<group>
</group>
...
</section>
<section>
</section>
...
</document>
I need to select the n-th symbol (and all subnodes),
where n is the symbol number in the whole document.
Is this possible? If it is how will I be able to
achieve this?
AFAIK position() starts counting with 1 for each
parent element - isn't it?
thanx in advance,
Gerald
I have an XML document looking similiar to:
<document>
<section>
<group>
<symbol>...</symbol> <!-- n=1 -->
<symbol>...</symbol> <!-- n=2 -->
...
<symbol>...</symbol> <!-- n=x -->
</group>
<symbol>...</symbol> <!-- n=x+1 -->
<symbol>...</symbol> <!-- n=x+2 -->
...
<group>
</group>
...
</section>
<section>
</section>
...
</document>
I need to select the n-th symbol (and all subnodes),
where n is the symbol number in the whole document.
Is this possible? If it is how will I be able to
achieve this?
AFAIK position() starts counting with 1 for each
parent element - isn't it?
thanx in advance,
Gerald