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

Posted by ReGenesis0 on 12/16/38 11:57

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

 

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

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