View Single Post
Banned | Posts: 358 | Thanked: 160 times | Joined on Dec 2010
#48
Originally Posted by Benson View Post
The problem with it is some ****** made it an XML file instead of a flat file like all config files were meant to be.

That makes your script either horrendously complex (implement a proper XML parser in awk) or ugly hackery (depend on the formatting details characteristic of how MicroB outputs it, rather than the XML's formatting-indifferent structure).

XML config files: a solution in search of a problem! Crushing souls and fighting the UNIX way since... well, whenever the !@#$ *****s started using them.
You want to sort it with php and the XML-DOM-Extension.

Last edited by epitaph; 2011-03-30 at 06:22.