Subject: Question: Pairing sibling nodes
From: Ahsan Ali <doubleletter@xxxxxxxxx>
Date: Tue, 15 Nov 2005 12:35:36 +0400
|
Hi,
I have an xml fragment as following:
<PNR>
<LNameInfo>
<LName>A.</LName>
</LNameInfo>
<LNameInfo>
<LName>Smith</LName>
</LNameInfo>
<LNameInfo>
<LName>Johnson</LName>
</LNameInfo>
<FNameInfo>
<FName>Ahsan</LName>
</FNameInfo>
<FNameInfo>
<FName>Brad</FName>
</FNameInfo>
<FNameInfo>
<FName>Dave</FName>
</FNameInfo>
</PNR>
I need to print the first Lname with the first Fname, and the second
with the second, and so on.
Any ideas on how to do this ?
Any help is appreciated.
Best Regards,
Ahsan A.
|