How to Create an XML File with Multiple Elements?

Updated Dec 8, 2018

Reported In

Software

  • LabVIEW

Issue Details

I want to create a XML file to save different data, and I want to have this data on multiple child nodes.

Solution

You can create an XML file and add new child nodes. Using a for loop can help add the amount of child nodes you need. To make the code easier we are going to use a SubVI to add the data to each child node.

As we see in the last scheme, we use a subVI (XML Adder .vi) to add new child nodes inside the for loop. This is how this subVI works

If an error exists:


 

WAS THIS ARTICLE HELPFUL?

Not Helpful