I have been going through the latest domxml extension and have a few questions about it.
Looking at the docs, it is indicated that set_content and get_content are depreciated. The new functions from the docs, however, do not really make sense. set_content - Create a new node with e.g. DomDocument_create_text_node() und add it with DomNode_append_child(). get_content - Content is just a text node and can be accessed with DomNode_child_nodes(). Would get_content really be replace with node_value? All the child_nodes would give you is the child nodes. I am not sure if this was the intended function of the get/set content functions, but this seems to be the general use people are using these functions for. On that note, if you are trying to set the value of an existing node, using the replacement (as indicated from the docs) you would should be creating a new node and appending it, which means you then should remove the old node. Shouldnt there be a set_node_value or similar function to just replace the content of an existing node? A set_node_value function would be DOM compliant as the nodeValue property is read/write according to the specs. Rob -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php