[PATCH] domxml
| From: | brad lafountain | Date: | Fri, 10 May 2002 02:04:15 +0000 |
| Subject: | [PATCH] domxml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83864@lists.php.net to get a copy of this message | ||
Hello,
This patch does two things.
Allows for php new/constructors to all of the dom nodes..
ex
- new
$var = new DomDocument("some.file", true);
- old
$var = xmldoc("some.file", true);
// small example how you would use it
$var = new DomDocument("some.file", true);
$var = new DomElement("name");
$var->set_content("some_content");
$doc->append_child($var);
$var = new DomElement("name");
$var = new DomText("name");
$var = new DomComment("comment");
$var = new DomAttribute("name", "value");
$var = new DomCData("data");
$var = new DomEnitityRefrence("data");
$var = new DomProcessingInstruction("data", "data");
and for all you c-programmers out there....
this patch also exports
php_domobject_new()
this will alow developers to create php_domobjects from there libxml2 node and
pass it into userspace.
If noone objects..... Ill commit it.
- Brad
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com