Modified "getXML()"