I have an xml doc with somte tags like:
Quote:
<person>
<id>1</id>
<name>bigjo</name>
</person>
<person>
<id>2</id>
<name>user1</name>
</person>
<function>
<idperson>1</idperson>
<description>programmer</description>
</function>
<function>
<idperson>1</idperson>
<description>webdesigner</description>
</function>
<function>
<idperson>2</idperson>
<description>programmer</description>
</function>
|
now I want to do a for-each on the person and in that for-each make another for-each to take all the function where the id of the first for-each is equal to the idperson.
can someone help me here?