Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - DOM Developer's Guide

Load an XML DOM Object from an XML File (Smart)

To load an XML DOM object from an XML data file, you use the load method. The following Microsoft Visual C++ 6.0 project illustrates this procedure.

This project uses the following files.

Component Description
Source: loadDOMsmart.cpp Creates an XML DOM object and loads the resource file into the project's main directory.
Resource: stocks.xml An XML data file.
Output This is the output you should get when you build and run the loadDOMsmart project.

Create the loadDOMsmart Visual C++ Project

Next, we'll add the source code for the loadDOMsmart project.