';
echo $nav;
echo "Now we look at importing an XML doc. We can use the one we just created as an example.\n";
echo "
\n \$doc = new xmltool();
\n \$doc->import_xml(\$xml_result);
\n
\n";
$doc = new xmltool();
$doc->import_xml($xml_result);
echo "This is the result of print_r(\$doc);
which shows the object tree\n";
echo "\n";
print_r($doc);
echo "
\n";
$cnode = new xmltool('node','newnode');
$cnode->import_var('blah',$myarr);
echo "
\nThis is the result of print_r(\$cnode);
which shows the object tree\n";
echo "\n";
print_r($cnode);
echo "
\n";
//$doc->data->data[3]->import_xml($xml_result);
//$doc->data->data[3]->import_var('blah',$myarr);
$xml_result = $doc->export_xml();
echo '
';
echo '
';
echo "The generated XML doc:\n";
echo "\n";
echo htmlentities($xml_result);
echo "
\n";
echo '
';
echo '
';
echo '