'Pass values as variables into XML from another file

Is it possible to pass values as variables from one file to another in XML For example I have this XML code :

<parent>true</parent>
<ChildName>network:123.249.185.117</ChildName>

I want to read the IP from some another file into this XML

<parent>true</parent>
<ChildName>network:${var1}</ChildName>

and then parse the XML using Javascript



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source