You are here: Re: I have DOM angst « PHP Programming Language « IT news, forums, messages
Re: I have DOM angst

Posted by universalbitmapper on 12/16/25 11:57

ReGenesis0@aol.com wrote:
> So, I'm workign with XML in PHP5.
> I like it. I finally worked out the trick of doing xsl
> transformation with libxslt. Load tree, make transformation, yay!
>
> But I'm missing a middle step somewhere. Creating DOM trees from
> variables in memory, or manipulating data in trees loaded in.
> firstChild nextChild seems... awfully comborsome, and of limited use
> unless you already know the structure of the DOM tree you're parsing.
>
> Does the trick lie somewhere in DOM's awkward support of xPath? I
> accept that I will be building functions (or more liekly classes) to
> proctor my manipulations of these dom trees, but I just... I have yet
> to figure our the TRICK of manipulatign them in some sane,
> non-soul-destroying manner.
>
> I suspect that I'm just looking at thigns sideways, and if someone
> were to turn me around so I'm facing the problem right, everything
> would call into place like an optical illusion. All the DOM examples I
> read online seem to be just how do very baic 'create a list' sort of
> stuff, or readign from simple trees, not multi-level nested stuff,
> possibly with the same tag-name appearign at different level of the
> hierarchy.
>
> POWER-DOM? Do such tutorials exist? Is there a book? I just
> need... to know how to approach this.
>
> -Derik

Hi, I'm a newbie in PHP/XML, but I found this book:
ISBN 9 780975 240205
by Thomas Myer, No nonsense XML Web development, Sitepoint.
They have a forum, you might be better asking your question there.

http://www.sitepoint.com/forums

XML is going to be very big from next year on with Vista and Office
2007.
And you're right to use DOM, HttpdRequest, that's the way to manage
the data flow and the presentation seamlessly :-)

 

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

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