Forum Moderators: coopster

Message Too Old, No Replies

XML processing

         

jackvull

11:20 am on Mar 30, 2006 (gmt 0)

10+ Year Member



I have to process XML documents on my server on a regular basis.
The is a lot of information in these files so out of interest, do you think it would be easier to transform them (XSLT) to say a text file and then input that into my database or just do it directly from PHP code?

coopster

2:22 am on Apr 1, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Parsing the data to push into a text file is the same process as parsing for a database table. If it is ultimately going to end up in the database table then I don't see any need to place overhead in the process. Plus, writing to and from your HDD is only going to create fragmentation. INSERT directly to the database I say.