CR2XML Class Overview

template <class TRBase = CRBase, class TToXML = CToXML>
class CR2XML : public TRBase, public TToXML

        XML, eXtensible Markup Language, an emerging markup language for internet application development across multiple platforms. Beginning with the OleDBPro version 1.5.0.0, XML is supported.

        The template C2XML can be used to generically, dynamically and friendly to do the followings:

  1. Efficient creation of a XML document from any rowset or OLAP dataset.
  2. Efficient generation of a XML document from a chaptered rowset with any levels of child rowsets. See CR2XML<T>::m_bAfter and CR2XML<T>::m_strChildren.
  3. Automatically dealing with XML reserved chars such as <, &, >, ", and ', and disagreement between OLEDB data and XML data format.
  4. Supports of CString/MFC, _bstr_t/COM, CComBSTR/COM, AnsiString/VCL, WideString/VCL and other string classes which can handle char/wchar_t conversion properly.
  5. Configuration of creation of a XML document at your will. See CR2XML<T>::m_bElements and CR2XML<T>::m_strRowTag.
  6. Simplification of generation of XML schema.

        The template parameter TRBase could be either CRBase, CODataset or their derived classes.

        The template parameter TToXML could be CToXML or its derived class.

CR2XML class members