|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ?? ????, Version 4.0 Beta 4
+- Added domxml extension based on libxml, still little functionality (Uwe)
- Fixed memory corruption in fgetss(), strip_tags() and gzgetss() (Zeev)
- Updated calendar dynamic library to work with PHP4. (Evan)
- Added strncmp() function, courtesy of Walter. (Andrei)
RETURN_FALSE;
}
- child = xmlNewChild(nodep, NULL, name->value.str.val, content->value.str.val);
+ if(content->value.str.len)
+ child = xmlNewChild(nodep, NULL, name->value.str.val, content->value.str.val);
+ else
+ child = xmlNewChild(nodep, NULL, name->value.str.val, NULL);
if (!child) {
RETURN_FALSE;
}
/* construct an object with some methods */
object_init_ex(return_value, domxmlnode_class_entry_ptr);
- add_property_long(return_value, "child", ret);
+ add_property_long(return_value, "node", ret);
add_property_long(return_value, "type", child->type);
add_property_stringl(return_value, "name", (char *) child->name, strlen(child->name), 1);
if(content->value.str.val)
if (!node) {
RETURN_FALSE;
}
+ docp->root = node;
ret = zend_list_insert(node, le_domxmlnodep);
/* construct an object with some methods */
$doc = newxmldoc("1.0");
$root = $doc->addroot("HTML");
-echo $root->name;
$root->newchild("TITLE", "Hier der Titel");
-$root->newchild("BODY", "");
+$body = $root->newchild("BODY", "");
+$table = $body->newchild("TABLE", "");
+$table->setattr("WIDTH", "100%");
+$table->newchild("TR", " ");
echo $doc->dumpmem();
?>