getXMLObjects() in XMLDocument to get XMLObjects with the given name