Re: XML vs Everything Else
| From: | Rodrigo Dominguez | Date: | Wed, 04 Sep 2002 02:19:42 +0000 |
| Subject: | Re: XML vs Everything Else | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115134@lists.php.net to get a copy of this message | ||
I'm writting an application, a control panel for a web site, and it will be
great if I can separe data from presentation, I know that I have to work
with XML and XSL but I didn't understand how it works.
Can you give me a simple example?
Let guess that a client request index.php, and I have index.xml for the
data, index.xsl for the data transformation and index.php, how it works?
"Geoff Hankerson" <ghank@millerdavis.com> escribió en el mensaje
news:3D754049.8010608@millerdavis.com...
> >
> >
> >Can anyone direct me to a page with xml in use? Something that can help
me
> >grasp what its all about.
> >
> >
> >
>
> I didn't understand xml at all until I started using it . I asked
> pretty much the same question as you (what is it good for?). Now I will
> almost always use xml in any app I work on.
>
> One application that is simply wonderful is xsl transformations. This
> allows you to take xml and transform it into html, wml, pdf, rtf , etc...
>
> What this ultimately means to me is seperation of presentation from
> logic and data which makes for a very flexible and easy to maintain
> application.
>
> I have made a php class to make a database query into xml in the form of:
> <record><fieldname> value </fieldname></record>
>
> Now stuff I used to do that took a whole page to code nows uses about 5
> lines. This is a real world benefit for me.
>
> Spend some time learning about xml and you won't regret it
>