Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml benefits

Status
Not open for further replies.

hame22

Programmer
Apr 25, 2005
9
GB

Hi I have a page containing xml data that is generated in a php page through mysql database. I have then performed an xsl transformation using an xsl stylesheet and a php script to print html.

what i want to know is, is there any benefit of spitting xml out then transforming it in this way as opposed to generating a styled php page straight away (cutting out the xml step) from the data in mysql database?

thanks in advance

alex
 
If all people are going to do is look at it, the only benefit you will get is the one whereby you could turn around and say: "Hey, Ive done this really cool thing before with xml, stylesheets and php..." ;)



------------------------
Hit any User to continue
 
Or if you later decide to make more than one output format.
 
XML's main advantage is system interoperability. If you decided to make your data available to other parties its a good idea to have it in XML format.

Also, having a middle tier means you could change the back-end without changing all your code.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top