You are here: C++ API > Classes > dtsSearchResults Class > dtsSearchResults::serializeAsXml Method
dtSearch Text Retrieval Engine Programmer's Reference
dtsSearchResults::serializeAsXml Method
dtsStringHandle serializeAsXml(int iItem = -1);

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.

Copyright (c) 1995-2023 dtSearch Corp. All rights reserved.