PassXMLData(VAR XMLData : BigText) ============================= IF CREATE(XMLDOMDoc) THEN BEGIN IF XMLDOMDoc.load(XMLData) THEN BEGIN MESSAGE('Loaded Successfully!'); END ELSE BEGIN MESSAGE('Load failed!'); END; END ELSE BEGIN MESSAGE('XML DOM Cannot be created!'); END;
Comments
XMLDOMDoc.load(XMLData)
You need to change that
XMLData.createinstream(iStream);
XMLDOMDoc.load(iStream);
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks for reply.
Base on your coding above, XMLData is BigText, so it cannot use createinstream.
Any idea?
Thank you.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Loading XMLDoc with instream throws an error in RTC :
"streams cannot be used with client side invoked automation objects"
Is there any way can use a bigtext variable in RTC to load XML document ?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks !!
xmldom. load('LocationofTemoraryFile);
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
XMLDOMDoc.loadxml(format(XMLData));
it works for me, but i don't know if there is any consequences using format for big text.
Thanks
2. Try pass XML data as variant.
Also, you can use 'Microsoft XML, v3.0'.IXMLDOMText' object instead of bigtext datatype (it's trick for older nav versions).
Here sample code:
Nav, T-SQL.