I would like to add three different sets of info/data to a existing xml file:
<exec>
<tc id=""></tc>
</exec>
To produce the following xml file:
<exec>
<dut mac="" ip="" model="" firmware=""/>
<tc id="" version="" date="" desription/objective="">
<ts id="" desription="" date="" expected_result="" result=""/>
</tc>
</exec>
The first
<dut> will only be added once but there will be severeal instances of
<tc> and every
<tc> will have one or more
<ts>
What I got so far is that I have to start read the existing xml file. But wondering how I best insert the data to the xml file? And how often should the xml file be saved?