|
Posted by Tim Van Wassenhove on 10/25/82 11:20
On 2005-07-04, petermichaux@yahoo.com <petermichaux@yahoo.com> wrote:
> I am interested in critisim of how I implemented each method. However
> my main problem is deciding between methods. Which method is better for
> bigger programs where the bits of the XML data are assembled by various
> php functions that I write?
Untill now i've liked the DOM(XML) extension more.. But i should make
some time to compare them against string manipulation...
> For example, one php function queries a database table for a list of CD
> titles. A second php function loops through this CD title list and gets
> the track listing for each CD from another table in the database.
I think that in this case you're better off with a JOIN in your query
and that resultset to your xml document.
In the situation where you would add 2 unrelated sorts of data, your
approach seems faisable... For example, a node with articles (main content)..
And another node with messages (for a shoutbox as a gimmick)
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Navigation:
[Reply to this message]
|