Generating dynamic XML with arguments.
Hi,
Is there any way we can manage the node values with parameters ...
<details>
<person>
<name>{{name_0}}</name>
<email>{{email_0}}</email>
</person>
<address>
<line1>{{line1_0}}</line1>
<line2>{{line1_0}}</line2>
</address>
<age> {{age_0}}</age>
</details>
I have a XML file like above.
My requirement is like Say If I run execute once then it should create only one <details> with arguments ending with 0 on its child nodes/elements (like shown in xml).
If i loop twice then it should create 2 nodes one with arguments 0 and the other with arguments 1 as shown above and so on.(like below). It should go on similar fashion with the number of loops.
<details>
<person>
<name>{{name_0}}</name>
<email>{{email_0}}</email>
</person>
<address>
<line1>{{line1_0}}</line1>
<line2>{{line1_0}}</line2>
</address>
<age> {{age_0}}</age>
</details>
<details>
<person>
<name>{{name_1}}</name>
<email>{{email_1}}</email>
</person>
<address>
<line1>{{line1_1}}</line1>
<line2>{{line1_1}}</line2>
</address>
<age> {{age_1}}</age>
</details>
Note- This is a huge XML file so I want to avoid the getElementsByTagName as well ..
Appriciate your help on this and thanks in advance.
Regards,
MKJ