It looks like a very comfortable solution to the problem posed. However if you deeply look at the real-life XML scenario, an XML may have multiple nodes with the same name. For example:
<root> <tag1> <commontag>XXX</commontag> </tag1> <tag2> <commontag>YYY</commontag> </tag2> <tag3> <commontag>ZZZ</commontag> </tag3> </root>
In such a complex scenario, we might not be able to use the solution suggested here.
However since I was short on time, I have used the XML::XPath module to populate the template as XPath queries identify each node and attribute uniquely.
There may be some better solution to the problem, and would really appreciate if someone can share it with me.
Regards,
Piyush
In reply to Re^2: Generating XML from a template
by piyush.shourie
in thread Generating XML from a template
by piyush.shourie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |