LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Poll and Article - Using XML Data in LabVIEW is Hard

Hi All,

I've posted a poll and article, here on LAVA, about how hard I find it to work with XML data in LabVIEW.  Please take a minute to vote on the poll and read the article.  I'm curious to find out more about your experiences with XML in LabVIEW.

Thanks,

-Jim
Message 1 of 3
(4,002 Views)
In the poll, I'm one of the people that uses the Internet Toolkit to read and write XML. The toolkit gives you property and method nodes for working with DOM (Document Object Model) objects. When I tried using them, I found that I was repeating certain bits of code over and over, and because the nodes are large on screen, my code was large on screen. That's why I added two VIs to the Moore Good Ideas free library, XML Append Child and XML Close Child. With those additions, I'm able to write complex clusters to hierarchical XML files in a tidy way.

Of course, I've been down a similar path to this before with .ini files. The MGI library has routines that facilitate writing arrays to .ini files and reading them back in, and for years I used those when manually creating code to read and write complex clusters to .ini files. Each time I modified my cluster to support program enhancements, I'd modify the corresponding read and write VIs. Then came the OpenG Variant Config file VIs, which can read and write arbitrary clusters, and the need to maintain the read and write VIs was wonderfully eliminated. Most recently, MGI has released the Read/Write Anything VIs which provide 100x to 500x speed improvement over the OpenG Variant Config file VIs, so the .ini file situation is in excellent shape.

Back to the XML world, we're still at the manual coding stage. It would be great if we had the XML equivalent of the OpenG Variant Config file VIs. Of course, with XML, you may also have the requirement to follow an industry specified schema, so the problem is a bit harder. I wonder if someone will solve this problem for us...
David A. Moore, Ph.D.
President
Moore Good Ideas, Inc.
0 Kudos
Message 2 of 3
(3,969 Views)


@David A. Moore wrote:

Back to the XML world, we're still at the manual coding stage. It would be great if we had the XML equivalent of the OpenG Variant Config file VIs. Of course, with XML, you may also have the requirement to follow an industry specified schema, so the problem is a bit harder. I wonder if someone will solve this problem for us...



Hi David,

Surprise... surprise... I posted a follow-up article called  Using XML Data in LabVIEW Just Got Easier, where I introduced a new tool, EasyXML, from JKI.  Something tells me you saw that coming 😉

Cheers,

-Jim
0 Kudos
Message 3 of 3
(3,660 Views)