Allow query results to be serialized to Xml