LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XML parser/formatter

Has anyone developer an XML parser/formatter for LV? I'd like an API that
allows:

1. to read in an XML file
2. search for specific tags/attributes
3. replace/insert nodes
4. save the XML back to disk
0 Kudos
Message 1 of 6
(4,012 Views)
You can use Microsoft XML parser for that. In labview you would be calling the MSXML ActiveX properties and methods to read/write the XML attributes.That would the best way to go with in labview. You can get MSXML from microsoft website for free.
0 Kudos
Message 2 of 6
(4,012 Views)
That's correct. I use that ActiveX Server from CVI and it works really
good. It provides a DOM (Document Object Modell) interface to
read/change/write XML documents. But you don't need to download that
from the microsoft website if you have a newer version ( >=5 I guess )
of Internet Explorer, MSXML is installed automatically.

In LabVIEW use the "Automation Open" Node and browse the registered
servers on your system. Normally its the last entry of the long list of
servers starting with "Microsoft..." and its named "Microsoft XML 1.0
Version 1.0"

Abdullah schrieb:
>
> You can use Microsoft XML parser for that. In labview you would be
> calling the MSXML ActiveX properties and methods to read/write the XML
> attributes.That would the best way to go with in
labview. You can get
> MSXML from microsoft website for free.

--
Torsten Levin Tel.: ++49-(0)89-72495-451
Kayser-Threde GmbH Fax: ++49-(0)89-72495-291
Perchtinger Str. 3 mailto:TL@kayser-threde.de
D-81379 München http://www.kayser-threde.de
0 Kudos
Message 3 of 6
(4,012 Views)
Hi,

Have you tried MSXML 3.0 with LabVIEV?
If you did please send me a simple VI which loads an xml file. I always get "Unknown System Error in XMLPhraser.vi" error with code 97. Any suggestions?
0 Kudos
Message 4 of 6
(4,012 Views)
I am trying to create and write an XML file.
I want to create a document and then add nodes as necessary. I have done this in VB, but when I do the same thing in LV it has an error.
Attached is the VB code and the LV vi.
A good link to reading an XML file is
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/6c414bdfe4c04f7086256a06007ad3f0?OpenDocument

Any help would be appreciated.
Download All
0 Kudos
Message 5 of 6
(4,012 Views)
Alex;

At www.openg.org you can obtain an XML-toolkit for LabVIEW

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 6 of 6
(4,012 Views)