LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Has anyone implemented a SAX interface VI?

Has anyone implemented a SAX parsing interface VI?
0 Kudos
Message 1 of 4
(3,054 Views)
The MSXML toolkit supports SAX, and as an ActiveX control it can be used in LabVIEW on Win32. The OpenG folks have a great interface to MSXML, though to my knowledge they haven't yet added SAX support to this interface. Still, though, the ActiveX events provided with LabVIEW should be enough to use SAX.
0 Kudos
Message 2 of 4
(3,054 Views)
Thanks for the response. I did get things working using the the DOM part of MSXML. Now that I know more, my question should have been "how do I create structures within a VI that respond to the events that SAX will generate?" That is, as SAX plows through an XML document, it will fire events such as 'element start' or 'element end'. What is the mechanism within LabVIEW that can handle an event such as this?

Thanks,

Chuck
0 Kudos
Message 3 of 4
(3,054 Views)
Ah. In 6.1 (and I think this works in 6.0 as well), there's an "ActiveX Events" subpalette on the Communications >> ActiveX palette. Basically, you create an ActiveX container on the front panel and wire it to a Create ActiveX Event Queue node on the block diagram. From there, you can wait on the various parsing events using the Wait on ActiveX Event node.
0 Kudos
Message 4 of 4
(3,054 Views)