Hi,
After analyzing the VI's of the "Getting Started Window" I feel impressed and want to integrate a XML storage for my next application. Currently I'm responsible for a list of computers which are still hold inside a XML file. At the moment I have to edit this file manually which is quiet boring when seeing the features of LabVIEW. So I tried to parse the contained data with the ParseXMLFragments.vi and recognized a strange behavior.
Every computer is mapped as an element and contains an attribute "id" with an uniform identifier. Running the parser on that data doesn't produce the expected result. Instead of getting a list of computers the elements with attributes result in two new entries for configuration and management. See the reduced testcase below or the attached VI for LV8.2:
The XML data
<computer id="office034">
<configuration>
<cpu clock="2.6 GHz">Intel(R) Celeron</cpu>
</configuration>
<management>
<investment>81732646</investment>
</management>
</computer>is parsed in an array with two elements:
<configuration>
<cpu clock="2.6 GHz">Intel(R) Celeron</cpu>
</configuration>
-----------------------------------------------------
<management>
<investment>81732646</investment>
</management>
This is not the expected result. Parsing the element computer should return the same data. If you remove the attribute from the elements it's working well.
Is this a known bug for the ParseXMLFragments.vi and is there any simple workaround available?
Thanks
Henrik