MSI Factory 2.3

XML.GetAttributeNames

XML.GetAttributeNames

This is the first topic This is the last topic  

XML.GetAttributeNames

This is the first topic This is the last topic  

OverviewExamples

table XML.GetAttributeNames (

string XMLPath )

Example 1

-- This example assumes the sample XML is already loaded into memory.

 

-- Return the names of the customer element's attributes.

customer_attributes = XML.GetAttributeNames("database/customer");

 

-- Perform some error checking.

error = Application.GetLastError();

if (error == 0) then

   Dialog.Message("Element Attributes", "The two attribute names are: \r\n\r\n"..customer_attributes[1].."\r\n"..customer_attributes[2]);

else

   Dialog.Message("Error", _tblErrorMessages[error]);

end

Gets the names of the customer element's attributes and displays them in a dialog message.

See also: Related Actions


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