Re: XML vs Everything Else

From: Date: Tue, 03 Sep 2002 23:05:45 +0000
Subject: Re: XML vs Everything Else
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-115113@lists.php.net to get a copy of this message
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

« previous php.general (#115113) next »