Added the method for the IObject interface to the XML class.