09-25-2023 10:56 AM
Hi,
I would like to "flatten" existing XML-Files with many "TestStep"-entries, from "old" to "new", by incorporating the Child-Entries "Attr" as an attribute into the normal entries.
old:
<TestReport
<TestExecution
<TestSteps>
<TestStep measid="0220_0005" status="Passed">
<Attr name="Infotext [Out]" type="String" value="[Request] 22 E0 68"/>
<Attr name="Requirements" type="String" value="HighVariant" />
</TestStep>
<TestExecution
<TestReport
new:
<TestReport
<TestExecution
<TestSteps>
<TestStep measid="0220_0005" status="Passed" Infotext="[Request] 22 E0 68" Requirements="HighVariant" />
</TestStep>
<TestExecution
<TestReport
I tried many approaches, but whenever i try to append an created "attribute" into an existing node LabView gives me an error.
Can anyone give me a hint?
This Code gives me Errorcode "-2607"
Solved! Go to Solution.
09-25-2023 10:57 AM
Here the VI (LV 2017) - but it does not work as mentioned above 🙂
09-25-2023 12:08 PM
09-27-2023 05:59 AM
Hi Raphaël,
thank you so much for your extremly fast reply!
Your VI i worked perfectly - this is exactly what i needed!
I would have never come to the idea to use "force Type" - i didn't even know that it existed 🙂