LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi,Has anyone tried MSXML 3.0 with LabVIEV?If someone 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?

Andras,

I hope you're using LabVIEW 6, because that's what I wrote my example (attached) in. I installed the Microsoft XML Parser version 3.0 from the Microsoft site and then played around until I got it parsing a test XML file (included in the VI).

With ActiveX, the trick usually lies in developing enough insight into the object model to figure out the right objects, properties, and methods to use. I settled on the "MSXML2.IXMLDOMDocument2" object and used the "loadXML" and "item" methods along with the "documentElement" and "childNodes" properties.

I definitely ran into error 97 along the way, but I got the impression it was due to my lack of understanding of what the heck I was doing instead of any misbehavior on LabVIEW's part. If I were going to do exten
sive development using this tool from Microsoft, I would probably spend a good bit of time studying Microsoft's documentation first.

Hope it helps,
John Lum
National Instruments
Message 2 of 3
(3,205 Views)
Thank you John it works fine. However I must have had other problems. Originally I only had MSXML3.0 installed on my machine and I could not get it running. I tested the same VI on an other computer, where only MSXML2.0 was installed. I had to change the ActiveX reference and it worked. I installed a patch msxml25sp1.exe and now both V2.0 and 3.0 works fine.
Thank you again.

Regards,

Andras Ferencz
0 Kudos
Message 3 of 3
(3,205 Views)