You are here: getElementById in PHP5 « PHP Programming Language « IT news, forums, messages
getElementById in PHP5

Posted by mananvyas on 10/30/06 12:45

Hi,

I am working on PHP5 and all the xmldom related extensions are
installed and on properly.
I am trying to execute following code but some how not working.


$doc = new DomDocument();
$doc->validateOnParse = true;
$doc->load('abc.xml');
//xml file contains one element with this id
$elem = $doc->getElementById( 'eee' );

if(is_null($elem)) {
echo "<br>IT IS NULL";
}
else {
echo "<br>NOT NULL.";
}

The output shows me null every time...
Why is that?????

Thanks in advance
Manan Vyas

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация