Why there is a conflict between DomDocument and DomElement classes?

0 like 0 dislike
Write the parser XML document in php using DomXml module.

For this I used the class of functions DomElement. Killed a whole day to sort it out but did. Obviously, this had to be commented in the php file.ini string extension=php_domxml.dll.

Code like this:


if(!$dom = domxml_open_mem($xmlstr)) {

echo "Error while parsing the document\";



$root = $dom->document_element();

$nodes = $root->child_nodes();


What is the actual problem. For the developed site on another page I used a ready-made parser Twitter feeds that to parse uses the DomDocument class of functions.

Code like this:


$feedURL = "twitter.com/statuses/user_timeline/yourtwitteruser...";

$doc = new DOMDocument();


$arrFeeds = array();


So, after I uncomment in the php file.ini string extension=php_domxml.dll parser for the tweeter stopped working. If his comment again, then stops working parser for a class of functions DomElement.

I noticed that the parser for Twitter is not working only when already wrote a parser for my xml document. Now I do not know how to get out of the situation.

What's the problem? Or am I still confused or don't understand something? Why the conflict?


For Virt. server yuzayu XAMPP. Apache/2.2.3. PHP/5.1.6.
by | 6 views

1 Answer

0 like 0 dislike
The answer is found.
That's what happens when thinking someone else's code (in the case of the parser for the Twitter feeds) and write your.
\rHere says that these two classes (extensions) are incompatible — and therefore conflict. And I not knowing this, wrote the code under php4... budems rewrite)

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
32,859 users