Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 3edf0460bd0634d0868f9e30d85505ae > files > 12

xerces-c-manual-1.5.2-1mdk.i586.rpm

<?xml version="1.0" standalone="no"?>
<!DOCTYPE s1 SYSTEM "./dtd/document.dtd">

<s1 title="&XercesCName; Sample 10: CreateDOMDocument">

    <s2 title="CreateDOMDocument">
        <p> 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.</p>

        <s3 title="Building on Windows">
	        <p>Load the &XercesCInstallDir;-win32\samples\Projects\Win32\VC6\samples.dsw
	        Microsoft Visual C++ workspace inside your MSVC IDE. Then
	        build the project marked CreateDOMDocument.</p>
        </s3>

        <s3 title="Building on UNIX">
<source>cd &XercesCInstallDir;-linux/samples
./runConfigure -p&lt;platform&gt; -c&lt;C_compiler&gt; -x&lt;C++_compiler&gt;
cd CreateDOMDocument
gmake</source>
	        <p>This will create the object files in the current directory and the executable named
	        CreateDOMDocument in ' &XercesCInstallDir;-linux/bin' directory.</p>

	        <p>To delete all the generated object files and executables, type</p>
<source>gmake clean</source>
        </s3>

        <s3 title="Running CreateDOMDocument">

          <p>The CreateDOMDocument sample illustrates how you can create a DOM tree
             in memory from scratch. To run CreateDOMDocument, enter the following</p>
<source>CreateDOMDocument</source>
          <p>Here is a sample output from CreateDOMDocument</p>
<source>cd &XercesCInstallDir;-linux/samples/data
CreateDOMDocument
The tree just created contains: 4 elements.</source>

        </s3>
    </s2>
</s1>