template <class TString>
bool CR2XML<T>::GetXMLField(ULONG nCol, TString& strXMLData, LPCOLESTR strTag=NULL);

Return Value

        true if successful; or false if failed

Parameters

         [in] nCol:

                The ordinal number of a rowset or dataset column.

        [out] strXMLData:

                A string by reference to receive the XML string data of a field. The template TString could be CString, _bstr_t, CComBSTR, AnsiString, WideString and any other string classes which can handle char/wchar_t conversion properly.

        [in] strTag:

                A string used as the tag for a field. If NULL, the string of a rowset or OLAP column is used as tag.

Remark

        Calls this function to convert one field into a XML string. The string could be any wrapper which is able to handle char/wchar_t conversion properly. This function is called by the CR2XML<T>::GetXMLRow.

CR2XML Class Overview & Class Members