MSI Factory 2.3

XML.Load

XML.Load

This is the first topic This is the last topic  

XML.Load

This is the first topic This is the last topic  

OverviewExamples

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


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us