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

MSXML 5.0 SDK

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

  • Create a Win32 console application in Visual C++. For detailed instructions on how to do this, see Set Up My Visual C++ Project. Name the project LoadDOMsmartProj.

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