XML::Xerces Sample: DOMCreate
Sample: DOMCreate
DOMCreate
DOMCreate, illustrates how you can create a DOM tree in memory from scratch. It then prints the the tree that was just created.
Running DOMCreate
The DOMCreate sample illustrates how you can create a DOM tree in memory from scratch. To run DOMCreate, enter the following
perl DOMCreate.pl
Here is a sample output from DOMCreate
perl DOMCreate.pl
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE contributors SYSTEM "contributors.dtd">
<contributors xmlns="contributors">
<person Role="manager">
<name>Mike Pogue</name>
<email>mpogue@us.ibm.com</email>
</person>
<person Role="developer">
<name>Tom Watson</name>
<email>rtwatson@us.ibm.com</email>
</person>
<person Role="tech writer">
<name>Susan Hardenbrook</name>
<email>susanhar@us.ibm.com</email>
</person>
</contributors>

