Update class.xml.php

Added the function getXmlObj.