serializeAsXml() encodes all of the data in a search results object as an XML stream and returns it using a dtsStringHandle. If iItem is -1, all of the items in search results are returned. If iItem is -2, only the XML describing the search results as a whole (the request, total hits, etc.) is returned. Otherwise, only the item indicated by iItem is returned.