I think you are misunderstanding XML. You can use XML in PHP both as a datasource and as a datacess and display tool. PHP has XML and XSLT support built into it. I say use PHP or both. You need to look at what you are doing and understand what you can do with XML and XSLT to make your life easier.
I use ASP and XML at the moment. I get XML based data from a SQL Server 2000 database via ASP and then I either walk it using ASP to render what I want or perfom certain operations or I apply an XSLT to render the correct HTML. It all depends on what I want to do with the XML data that I either pull from the database or load from a local XML file.
You could use PHP to validate input or do some logic to determine what data to get and then use the XML and XSLT functionality within PHP to work with the XML data. If you want to apply XSLT transformations on XML data then its better done on the server as you don't know what XSLT parser (if any!) the client browser has access to).
I hope this helps a bit in making it a bit clearer that its not a case of one or the other.
James James Culshaw
jculshaw@miniaturereview.co.uk
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.