RE: [PHP] XML
| From: | Ray Hunter | Date: | Tue, 08 Jul 2003 22:36:24 +0000 |
| Subject: | RE: [PHP] XML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154451@lists.php.net to get a copy of this message | ||
I see that not many sites require the use of xml/xsl(t). Many sites can
just use html and database to accomplish 99.9% of the work.
I always suggest that when you have tons of data that you need to send
to the user that it is a good idea. Especially now that xslt is growing
up :)
I like to use xml and xsl for various reasons, mainly i can really
separate the logic and presentation. All data is keep in the xml file
and presentation in the xsl file. So when i need to make changes in the
presentation then i only change the xsl file and never really have to
touch the logic (php) code. This is really, really great for some sights
that are extremely complex.
Also in php i can create standards that my xml files will follow (dtds,
schema) and allowing me to create modules (functionality) very
efficiently and timely.
Also as mentioned xml provides a format for transfering data. However, i
would not use it with databases unless it is large amounts of data.
However, i have used xml for creating sql queries and setting up
configureation files which are extremely reliabe.
--
BigDog
On Tue, 2003-07-08 at 15:51, Jeff Harris wrote:
> |-----Original Message-----
> |From: Petre Agenbag [mailto:internet@vsa.co.za]
> |Sent: Tuesday, July 08, 2003 6:27 AM
> |To: php-general@lists.php.net
> |Subject: [PHP] XML
> |
> |
> |Hi List
> |
> |Firstly, this question is arguable more about XML than PHP, but they are
> |interlinked, so I hope it is "topical" for this list.
> |
> |Firstly, Where I come from:
> |
> |I am VERY comfortable with PHP/MySQL on Linux and understand all those
> |concepts.
> |
> |Now I'm trying to see the benefits of XML, and quite frankly, I just
> |cannot see why one would want to use it...
> |
> [snip]
>
> On Jul 8, 2003, "Joe Harman" claimed that:
>
> |Okay Petre... You have asked the question that I always wanted to ask!!!
> |I can't wait to see peoples answer... I simply can't find a use for it
> |either....
> |
> |Joe
>
> This probably should be on another list, but it might give someone an idea
> on how to create something in PHP. I've been trying to figure out if some
> of what I'm doing would be good for XML. The answer for that is "no, use a
> database."
>
> It seems to me, that XML is a way of encoding data for the transmission
> between two processors. For example, the database uses XML to transfer
> data to the PHP engine. The weather magnet uses XML to transmit
> information to your PHP script, which parses it and produces the HTML
> output. My page asks your script for some information, and it's returned
> as well-formed XML.
>
> As far as using an XML file to act as a database and your parser to create
> the HTML, it's probably better to use a database.
>
> Jeff
> (my $.015 [after taxes] )
> --
> Registered Linux user #304026.
> "lynx -source http://jharris.rallycentral.us/jharris.asc |
> gpg --import"
> Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
> Responses to this message should conform to RFC 1855.
>
>