Zaphiro Technologies Posted April 12, 2019 Report Share Posted April 12, 2019 (edited) Hello, I'm trying to load data from an XML file, it contains this : <supportedVariation> <objectGroup>0</objectGroup> <variation>1000</variation> <description>Device 1</description> </supportedVariation> <supportedVariation> <objectGroup>1</objectGroup> <variation>2000</variation> <description>Device Attributes 2</description> </supportedVariation> <supportedVariation> <objectGroup>2</objectGroup> <variation>3000/variation> <description>Device 3</description> </supportedVariation> The Array name is supportVariation and the element of the array is a cluster that contains 3 elements (objectGroup (I32), variation (I32) and description (string)). It seems to me that EasyXML can't load this, I hope I'm wrong. In LabVIEW created an Array named "supportVariation" containing a cluster that I named "cluster" that contains my 3 elements objectGroup (I32), variation (I32) and description (string) EasyXML "sees" all the element in the array but doesn't load the value of the cluster elements because the file doesn't contain the cluster name. If I use EasyXML to write the cluster array, the created xml file has the cluster name. Edit : Ha... in fact it works just fine (which is amazing), After some poking and debugging I just found out that I had an extra cluster layer in my control (cluster frames are so thin these days). Edited April 12, 2019 by AntoineChalons Quote Link to comment Share on other sites More sharing options...
Jim Kring Posted April 12, 2019 Report Share Posted April 12, 2019 Hi @Antoine Chalons. Yes, I can see how layers of nested array/cluster containers can be tricky 🙂 I'm glad you were able to figure it out, and get it working! Hope all is going well for you in general and on your LV projects. 1 Quote Link to comment Share on other sites More sharing options...
Zaphiro Technologies Posted April 16, 2019 Author Report Share Posted April 16, 2019 (edited) Cheers @Jim Kring, lots of challenging problems to solve with LabVIEW 🙂 EasyXML Toolkit is fabulous, I remember there use to be a paid version, it's really nice of JKI to have put it OpenSource on GitHub! If there was a way to donate money to thank the developers, I would! Edited April 16, 2019 by AntoineChalons Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.