How can I insert xml data (as variable) from PHP using XSLT

Uttecetbace

New Member
I have a requirement of generating a master XML file by integrating some XML files. It can be achieved if we have different child XML files stored at some where on the disk. But here in my case child XML files are dynamic XML data. They are not stored any where but generating dynamically. So how can i insert these child XML data to generate a master XML file.My input is :\[code\]<root> <element id="1"> </element> <element id="2"> </element></root>\[/code\]My output would be:\[code\]<root> <element id="1"> <section> <record>12</record> </section> </element> <element id="2"> <section> <input>menu</input> </section> </element></root>\[/code\]Here in the above output XML data(\[code\]<section><record>12</record></section>\[/code\]) should come from PHP variable.
 
Back
Top