06-21-2007 03:53 AM
Dim xmlDoc As New Msxml2.DOMDocument30
Dim root As IXMLDOMElement
Dim CDATASection As IXMLDOMCDATASection
xmlDoc.async = False
xmlDoc.loadXML "<root><child/></root>"
If (xmlDoc.parseError.errorCode <> 0) Then
Dim myErr
Set myErr = xmlDoc.parseError
MsgBox("You have error " & myErr.reason)
Else
Set root = xmlDoc.documentElement
Set CDATASection = xmlDoc.createCDATASection("Hello World!")
root.appendChild CDATASection
MsgBox (root.xml)
End IfHow can I transfer this solution is LabVIEW? When I try this, I cannot use the output of the createCDATAsection as input for the appendchild method.
Any help would be appriciated. I google'd and searched this forim without success.
Thanks
06-22-2007 04:05 AM
06-22-2007 04:41 AM