Re: Problem with DOMXML

From: Date: Wed, 30 Aug 2000 09:06:15 +0000
Subject: Re: Problem with DOMXML
Groups: php.general 
Request: Send a blank email to php-general+get-14353@lists.php.net to get a copy of this message
Just to confirm that I tried the same kind of thing and had the same problem. Using libxml2 2.2.1 and PHP 4.0.1pl2 as Apache 1.3.12. module. (This is an example from "Web Application Development with PHP" isn't it?) Nick Talbott IT Policy and Strategy Manager, Powys County Council, UK email nickt@powys.gov.uk FAX +44 (0) 1597 824781 web http://www.powys.gov.uk and http://www.powysweb.co.uk -----Original Message----- From: Sebastian Bergmann <sb@phpOpenTracker.de> To: php-general@lists.php.net <php-general@lists.php.net> Date: 30 August 2000 07:09 Subject: [PHP] Problem with DOMXML > 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 */ ?> > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#14353) next »