ID: 23326 Comment by: p0wer at bojko dot krakow dot pl Reported By: markus dot pfefferle at web dot de Status: Open Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: 4CVS-2003-04-24 (stable) New Comment:
Does not work for 4.3.3RC3 on Linux (Debian Sid) either. Previous Comments: ------------------------------------------------------------------------ [2003-04-25 04:17:25] markus dot pfefferle at web dot de Forgot the entry that I'm refering to: http://www.php.net/manual/en/function.domdocument-create-attribute.php ------------------------------------------------------------------------ [2003-04-25 04:16:26] markus dot pfefferle at web dot de How my daddy used to day: "if it ain't implemented, don't document it!" ------------------------------------------------------------------------ [2003-04-25 03:59:02] [EMAIL PROTECTED] isn't implemented you have to use $element->set_attribute_node() which only is available in CVS HEAD. You could try the php_domxml.dll from the latest cvs-snapshot ------------------------------------------------------------------------ [2003-04-24 08:18:16] markus dot pfefferle at web dot de This works: $document = domxml_new_doc('1.0'); $test = $document->append_child($document->create_element('test')); $test->set_attribute('key', 'value'); echo htmlspecialchars($document->dump_mem(1)); This does not: $document = domxml_new_doc('1.0'); $test = $document->append_child($document->create_element('test')); $test->append_child($document->create_attribute('key', 'value')); echo htmlspecialchars($document->dump_mem(1)); Also doesn't work on 4.3.1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23326&edit=1