Problem with DOMXML
| From: | Sebastian Bergmann | Date: | Wed, 30 Aug 2000 06:14:27 +0000 |
| Subject: | Problem with DOMXML | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14323@lists.php.net to get a copy of this message | ||
Hi,
I have a little problem with the DOM XML functions.
The output of the following script
<?php
// create new xml document
$document = new_xmldoc( "1.0" );
// add "root" element
$root = $document->add_root( "root" );
// set contents for "root" element
$root->content = "contents of root";
// output xml document
print htmlspecialchars( $document->dumpmem() );
?>
is
<?xml version="1.0"?> <root/>
and not
<?xml version="1.0"?> <root> contents of root <root/>
as I'd expected it to be.
--
<?php $a=explode(" " ,"119 130 128 129 45 110 123 124 129 117 114 127 45 ".
"125 117 125 45 117 110 112 120 114 127");for($i=0;$i<sizeof($a);$i++)print
chr($a[$i]-13); /* http://sb.phpOpenTracker.de |
sb@phpOpenTracker.de */ ?>