http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build Instructions

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

CreateDOMDocument
 

CreateDOMDocument, illustrates how you can create a DOM tree in memory from scratch. It then reports the elements in the tree that was just created.

Building on Windows
 

Load the xerces-c1_5_2-win32\samples\Projects\Win32\VC6\samples.dsw Microsoft Visual C++ workspace inside your MSVC IDE. Then build the project marked CreateDOMDocument.


Building on UNIX
 
cd xerces-c1_5_2-linux/samples
./runConfigure -p<platform> -c<C_compiler> -x<C++_compiler>
cd CreateDOMDocument
gmake

This will create the object files in the current directory and the executable named CreateDOMDocument in ' xerces-c1_5_2-linux/bin' directory.

To delete all the generated object files and executables, type

gmake clean

Running CreateDOMDocument
 

The CreateDOMDocument sample illustrates how you can create a DOM tree in memory from scratch. To run CreateDOMDocument, enter the following

CreateDOMDocument

Here is a sample output from CreateDOMDocument

cd xerces-c1_5_2-linux/samples/data
CreateDOMDocument
The tree just created contains: 4 elements.



Copyright © 2001 The Apache Software Foundation. All Rights Reserved.