Reply to Re: DOM question - visiting a node's children?

Your name:

Reply:


Posted by Kimmo Laine on 05/16/06 16:02

"Erwin Moller"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote in
message news:4469919e$0$31644$e4fe514c@news.xs4all.nl...
> r_topor@yahoo.com wrote:
>
>> As of PHP 5.1, why aren't there functions that return a node's
>> children, a node's first/last/nth child, a node's parent/previous
>> sibling/next sibling, etc., as in the DOM specification? How are you
>> currently meant to traverse a DOM tree without these functions? Or
>> perhaps they exist somewhere in the documentation, but not under the
>> list of DOM functions - if so, where are they?
>>
>> Rodney
>
> Hi Rodney,
>
> That is like asking: "Where are the rocket blueprints for the Saturn5 in
> PHP?"
>
> PHP is executed at the server, and returns a response, which can be HTML.
> If you want to use DOM-specific functionality, this is executed by the
> browser that receives the HTML produced by PHP.
>
> PHP is completely out-of-touch with the HTML it delivered.
>
> You need Javascript to access DOM in a browser.

While I agree with the fact that the question was a bit odd, I think it
could actually mean another DOM tree, such as an XML DOM instead of HTML.
Perhaps the original poster is referring to some XML parser, who knows.
Point is that HTML isn't the only possibility here.

--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)

[Back to original 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

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