From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Components

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference Library for Converting Between LabVIEW and XML Data (GXML)

Most likely you should use the XML Parser functions in LabVIEW to build your custom XML. These functions/VIs are located in Function Palette>>File I/O>XML>>XML Parser.

 

In the Example Finder, search for XML, and then open the Generate XML String with Parser API.vi example to see how to use the API.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 131 of 132
(2,211 Views)

Hi

 

I love this library as it generates a very nice and still readable XML-code (in comparison to the "flatten to XML" LabVIEW primitive).

 

But I now stumbled about the "decimal point" error that is already mentioned in this thread elsewhere, i.e. that GXML uses the "decimal point" settings of your OS to create and parse floating point numbers. It should always create floating point number with a dot as the decimal point!

 

Of course that is something easily fixed since none of the VIs is password protected.

 

But it would even be easier if if the source code would be available on github like many other System Engineer Libraries so that we can create our own versions and give them back to the community.

 

Jens

 

Kudos are welcome...
0 Kudos
Message 132 of 132
(1,633 Views)