Jump to content

loading cluster array from XML - resolved


Recommended Posts

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 by AntoineChalons
Link to comment
Share on other sites

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 by AntoineChalons
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.