From:             [EMAIL PROTECTED]
Operating system: Slackware 8.0
PHP version:      4.1.0
PHP Bug Type:     DOM XML related
Bug description:  Undefined property:  name

I've compiled PHP-4.1.0 with libxml2-2.4.2 on linux machine
with that options:
/configure --with-apache=../apache_1.3.22 --enable-trans-sid
--with-mysql=/mysql 
--disable-magic-quotes --with-dom --with-qtdom --with-zlib --with-png 
--with-ttf --enable-safe-mode --enable-track-vars --with-xml

When I trie to use any domxml functions (below a part of php code taken
from manual) I get error in my php_error_log 
like this:

"Undefined property:  name in example.php"
"Undefined property:  name in example.php"

// data file
$str = "<?xml version=\"1.0\"?><me><name>Joe
Cool</name><age>24</age><sex>male</sex></me>";
// create a document object
$dom = xmldoc($str);

// get reference to root node
$root = $dom->root();

// get name of node - "me"
echo $root->name;

// get children of node, as array
$children = $root->children();

I checked the same script with older version of php (4.0.6)and libxml2
(2.2.3) and it works.
Any ideas what I do wrong?

Agnieszka Kukalowicz 


-- 
Edit bug report at: http://bugs.php.net/?id=14500&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to