During this period of development, you need to parse and read the XML file. The workflow of msxml2 is summarized and memorized.
Of course, intelligent pointers ccomptr and ccombstr are generally used to encapsulate COM interface pointers and BSTR strings.
Nonsense: MSXML is a set of COM interfaces provided by Microsoft. Includes the following interfaces:
1: ixmldomdocument: Generally, the smart pointer ccomptr <>
It is an interface at the entire document level to obtain instances of the MSXML service. You can use the following method to obtain: Hr = cocreateinstance (clsid_domdocument30, null, clsctx_inproc_server, iid_ixmldomdocument, (void **) & pxmldoc );
2: ixmldomnode. Call load (File Name) or loadxml (obtained XML file) in ixmldomdocument ).
3: ixmldomnodelist. Call get_childnodes in ixmldomnode to obtain nodelist.
Get_length () is used to obtain the number of subnodes contained in the list.
Get_item () is used to obtain the corresponding node
4. ixmldomelement. You can directly convert the corresponding node interface pointer to the corresponding ixmldomelement pointer. Call get_text () to obtain the node content.
Supplement:
Ccomptr, display release call. Release ().