Actually I rather hate XML for config files. The problem is that there is alot of overhead for an decent XML parser, even with what is built into PHP to support it. Plus it is considerably SLOWER to parse an XML config file than it would be to parse your own special configuration file. XML is ok for minimal processing but if you want any speed with PHP it is probably best to avoid it.d11wtq wrote:Actually the browser can read it. You just need to write a DTD for itevilmonkey wrote:Hello,
I searched the internet left and right for the answer to this question, but so far I couldn't find anything comprehensible. It seems like, okay, you make your own markup, now what? The browser can't read it, you're stuck with a bunch of plan text to which you have to write your own parser (be in PHP or some other language). If that's so, what's the point of the XML standard? Did I miss the point entirely? Time for XML discussion.
Cheers!
XML parses extremely easily too... this makes it excellent for config files.
XML is a great idea for portability of data between different applications but I would NOT use it for data that has to be processed for every web page because of the slow speed and high overhead. There are far better methods for storing information that is used within your own application. I would only use XML for sharing data between different applications. Such as exporting data that will be imported into another application.