MSI Factory 2.3

XML.GetXML

XML.GetXML

This is the first topic This is the last topic  

XML.GetXML

This is the first topic This is the last topic  

OverviewExamples

string XML.GetXML (

)

Example 1

-- Load an XML file into memory.

XML.Load(_TempFolder.."\\Sample2.xml");

 

-- Check if an error was returned.

error = Application.GetLastError();

-- If no errors occurred...

if (error == 0) then

   -- Return the currently loaded XML in a string.

   strXML = XML.GetXML();

 

   -- See if any errors occurred. If no errors occurred, display the string.

   error = Application.GetLastError();

   if (error == 0) 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