added getXML back for backwards compatibility