471,319 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

PHP4 Dom XML to PHP5 XML

Is it just me... Or is PHP5 XML very limited?
Or am I missing something very obvious?
Any way to use PHP4 Dom XML in PHP5?
Does anyone know why support for it was dropped?
I have following code I need to have replaced:
PHP4
$eir_dom = domxml_open_mem($eir_padfile_content);
$eir_root_node = $eir_dom->document_element(); // = root element

PHP5
$eir_dom = new DOMDocument;
$eir_dom->loadXml($eir_padfile_content);
// how do I set $eir_root_node ?
PHP4
.... $nodes = $cur_root_node->child_nodes();
.... if ($test_node->node_name() == $next_node_name_to_find) {
PHP5
// child_nodes(); node_name()
PHP4
.... if ($node_child->node_type() == XML_TEXT_NODE) {
$node_child->set_content($new_content);
break;
}
PHP5
// set_content, node_type()

best regards
Thomas Schulz
Aug 3 '05 #1
1 2516
> Is it just me... Or is PHP5 XML very limited?

Check out
http://alexandre.alapetite.net/doc-a.../index.en.html

best regards
Thomas
Aug 4 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tim Tyler | last post: by
reply views Thread by Dave Pham | last post: by
4 posts views Thread by Kevin | last post: by
5 posts views Thread by sinister | last post: by
2 posts views Thread by Stefan Huber | last post: by
12 posts views Thread by Drazen Gemic | last post: by
8 posts views Thread by FFMG | last post: by
3 posts views Thread by jmark | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.