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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> > 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux