LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

parse string using CVIXML

HI,

I am familiar with the CVI XML libraries, in that i have been reading from and writing to XML files.

now, i just want to be able to parse XML Data using the CVI XML functions without using actual files. 

Specifically, I have a stream of XML data buffered into a string, and I want to parse through its elements and attributes. 

how can this be done?  i cant seem to find any way to load a CVIElement without assuming a CVIDocument exists.

thanks!


0 Kudos
Message 1 of 3
(4,140 Views)
This is currently not available in the CVIXML instrument. But you can add a new function to do this in cvixml.c quite easily by creating a function similar to CVIXMLLoadDocument and replacing the MSXML_IXMLDOMDocumentload call with a call to MSXML_IXMLDOMDocumentloadXML. You will also have to declare the new function (say CVIXMLLoadXML) in cvixml.h and optionally add a function panel for this in cvixml.fp, and finally recompile the instrument.
0 Kudos
Message 2 of 3
(4,119 Views)
hmmm   that sounds like a weekend project 

Smiley Wink

ill try it out and come back.


0 Kudos
Message 3 of 3
(4,084 Views)