getElementById in PHP5
- From: mananvyas@xxxxxxxxx
- Date: 30 Oct 2006 04:45:50 -0800
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
.
- Follow-Ups:
- Re: getElementById in PHP5
- From: Andy Hassall
- Re: getElementById in PHP5
- Prev by Date: Re: sessions and domain names
- Next by Date: How do I display radio button results?
- Previous by thread: run excel
- Next by thread: Re: getElementById in PHP5
- Index(es):