Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IDBCResultSet::toXML ( p6IDataStream pOutput,
const P6WCHAR pTopElement 
)
pure virtual

Return all the values in the result set in XML format.

Each XML element will have the names of the columns defined in the database schema. Entries in the result set that have a NULL value will be represented as an empty element. After calling this function, a call to reset() would be needed to access any of the result set data.

Parameters
pOutput[ in ] The XML output is written to this data stream.
pTopElement[ in ] String to be used for the top most element in the generated XML document.
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eInvalidArgOne of the pointers is NULL.
P6R::eFormatErrorIf pTopElement points to a string containing either '<' or '&' characters, which are illegal for XML element names.