Re: Re: DOMDocument->getElementById() isn't working

From: Date: Mon, 07 Jan 2008 13:36:07 +0000
Subject: Re: Re: DOMDocument->getElementById() isn't working
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-266836@lists.php.net to get a copy of this message
> > > that one of the nodes has an id of 'custom'. However, when I try to get > the > > element directly using getElementById(), it doesn't return the node > > properly. Am I doing something wrong? > > A common problem. See here: > http://wiki.flux-cms.org/display/BLOG/GetElementById+Pitfalls > > Probably easiest to use XPath. Otherwise you have to slightly modify > your HTML... Thanks for the link. It was very informative. I've switched to using XPath and that seems to have solved my problems. Thanks for the help! thnx, Christoph

« previous php.general (#266836) next »