XML object provides a scripting interface to the elements of the Stores | XML collection in your project.
The names of the object properties coincide with the names of the collections elements (the properties have the same name as the element names displayed in the Project Explorer panel). Each property returns the
XMLCheckpoint object that corresponds to the appropriate child element.
The object is available only if the project contains the Stores | XML collection.
The following example demonstrates how you can use the
XML object to obtain the elements of the Stores | XML collection from script.
def XMLObject(): # Uses the appropriate property of the XML object, ... # ... to obtain the XMLCheckpoint1 object in script. XMLElement1 = XML.XMLCheckpoint1 # Uses the appropriate property of the XML object, ... # ... to obtain the XMLCheckpoint2 object in script. XMLElement2 = XML.XMLCheckpoint2 # Compares the contents of the XML checkpoints. XMLElement1.Compare(XMLElement2)