XML API queries now work