Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdate XML file from a XML Template
    text
    copied!<p>I have two xml file one being called config.xml and configtemplate.xml. What I am trying to do is add lines from the configtemplate.xml to the config.xml file. </p> <pre><code>config.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;config&gt; &lt;Database&gt; &lt;DataType&gt;1&lt;/DataType&gt; &lt;ServerName&gt;192.168.50.80&lt;/ServerName&gt; // add information here supplied by the configtemplate.xml &lt;/Database&gt; &lt;Services&gt; &lt;Wash&gt;1&lt;/Wash&gt; // add information here supplied by the configtemplate.xml &lt;/Services&gt; &lt;Options&gt; &lt;TaxRate&gt;8.125&lt;/TaxRate&gt; &lt;AskForZipcode&gt;0&lt;/AskForZipcode&gt; // add information here supplied by the configtemplate.xml &lt;/Options&gt; </code></pre> <p>What I need is for it to get all the data from configtemplate.xml and add it to the config file without it overriding and value that are in their. </p> <p>Also the value in configtemplate.xml are going to be different then what they might have. </p> <pre><code>configtemplate.xml &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;config&gt; &lt;Database&gt; &lt;DataType&gt;1&lt;/DataType&gt; &lt;ServerName&gt;192.168.50.80&lt;/ServerName&gt; // add all lines below to config.xml &lt;DatabaseName&gt;TestDB&lt;/DatabaseName&gt; &lt;/Database&gt; &lt;Services&gt; &lt;Wash&gt;1&lt;/Wash&gt; // add all lines below to config.xmlxml &lt;Greeter&gt;0&lt;/Greeter&gt; &lt;/Services&gt; &lt;Options&gt; &lt;TaxRate&gt;8.125&lt;/TaxRate&gt; &lt;AskForZipcode&gt;0&lt;/AskForZipcode&gt; // add all lines below to config.xml &lt;AutoSave&gt;1&lt;/AutoSave&gt; &lt;/Options&gt; </code></pre> <p>I am hoping I am explaining by self correctly and Thank you</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload