string loadXML(string $filename)
This procedure takes the name of an XML file to open and loads it into your scene by creating a hierarchy of transform nodes with various attributes added to hold data. It returns the name fo the top-level node in the generated heirarchy.
string getData(string $nodeName)
This will return the contents of the data attribute on the specified node. Note that a node will only have a data attribute if it was wrapped around raw text. If you try to use this function with a node that doesn't have a data attribute, a warning message will be displayed.
string[] getAtts(string $nodeName)
This will return a string array of all the attributes on the specified object.
string[] getByType(string $topNode, string $type)
This function takes both the name of a top-level XML file node, and a particular type (such as either "object" or "subname" in the above example. It then returns an array of all decendants of the top node that are of the specified type.
Other functions
Since the information is stored into a heirarchy of transform nodes, and the attributes and data are stored as custom attributes, there are also a number of standard MEL commands you're likely to find useful when working with the generated heirarchy:
listRelatives
Offers a number of options for grabbing nodes related to a given node. You can get the parent, the children, or use the -ad flag to get all descendants.
listAttr
The list attributes function will allow you to find out what attributes are available on a given node. If used with the -ud (user defined) flag, you'll get only custom attributes.
getAttr
Will get the value of a specified attribute. You might want to wrap it in a catch statement, in case the specified object doesn't contain the specified attribute.