XML.Load

XML.Load ( 

string Filename )

Example 1

-- Load an XML file into memory.
XML.Load(_TempFolder.."\\Sample2.xml");

-- Check whether an error occurred
error = Application.GetLastError();
-- If no errors occurred...
if (error == XML.OK) then
    -- get the current XML document as a string
    strXML = XML.GetXML();
    
    -- if no errors occurred, display the XML in a popup dialog
    error = Application.GetLastError();
    if (error == XML.OK) then
        Dialog.Message("XML contents",strXML);
    else
        Dialog.Message("Error", _tblErrorMessages[error]);'
    end
else    
    Dialog.Message("Error", _tblErrorMessages[error]);
end

Loads an XML file into memory, gets that XML as a string, and then shows it in a dialog message.

See also:  Related Actions