XML.SetXML

XML.SetXML ( 

string Text )

Example 1

-- Sets the currently loaded XML document to the text from a string.
XML.SetXML("MyValue1MyValue2");

-- Check if any errors occurred setting the XML.
error = Application.GetLastError();
if (error == 0) then
    -- Return the currently loaded XML in a string.
    strXML = XML.GetXML();
    
    -- Display the XML contents in a dialog.
    if (strXML ~= "") then
        Dialog.Message("XML contents",strXML);
    end
else
    Dialog.Message("Error", _tblErrorMessages[error]);
end

Sets the currently loaded XML document to the text from a string and then shows its contents in a dialog message.

See also:  Related Actions