Example Code

Cluster to Xml & Xml to Cluster

Code and Documents

Attachment

Hi everyone.

I developed "Cluster to xml" and "xml to cluster" converter.I hope more people benefit.

1.PNG

Best Regards.

Himmet GENCER

Himmet GENCER
Software Development Coordinator at TDG
himmetgencer@gmail.com

View Himmet Gencer's profile on LinkedIn

View on Instagram

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
jordankuehn
Member
Member
on

xml.png

What's wrong with the existing LabVIEW primatives?

The Colex Group
Lead Software Engineer
Certified LabVIEW Developer
Himmet
Active Participant
Active Participant
on

2.PNG

Himmet GENCER
Software Development Coordinator at TDG
himmetgencer@gmail.com

View Himmet Gencer's profile on LinkedIn

View on Instagram
Himmet
Active Participant
Active Participant
on

Flatten to xml produce unnecessary child.Example value type  ... So produced xml  not simply for other platforms

Himmet GENCER
Software Development Coordinator at TDG
himmetgencer@gmail.com

View Himmet Gencer's profile on LinkedIn

View on Instagram
Nick-W
Member
Member
on

There is more XML in the LV example, but it is there for a reason for it.  The LV primatives will support any LV data type and to do that, the implementation must be more generic.  While the VIs you did will generate easier to read XML, they will fail as soon as you try to convert a cluster with a data type not explicitly supported, such as an array or sub-cluster or event timestamp. 

Contributors