Macnimation wrote:
> What are the advantages/disadvantages of retrieving data
onto a web page using
> XML data (probably generated from a MySQL database) over
just pulling data
> straight from the database?
XML is designed as a platform neutral way of sharing
information. If you
want to give others access to your data so that they can
incorporate it
into their own website or news aggregator, use XML. If you
want to
incorporate the data into your own website, it's usually
better to grab
it directly from the database.
However, if the information doesn't change very often, you
might want to
consider generating an XML document from the database and
accessing that
for your web pages, as it saves sending a request to the
database every
time the page is viewed. The downside of doing that is that
incorporating data from XML is usually more complex than
grabbing it
from the database.
There's no simple answer; it basically boils down to how you
want to use
the information.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/