added method to return the xml instance of SimpleXMLElement