On Mon, Aug 25, 2008 at 12:47:31PM +0100, Mike Jagdis wrote: > > Why should XML be the default? Why should XML even be used?
Well, it is my personal opinion but I think XML is a lot better to parse than the stuff currently being presented to the programmer/user. libxml2 is easy to use so why not XML? Or another question: Why not opbx_ but cw_? Many programmers out there who develop closed source software for CW had to change their source, too. ;) Anyway, I had some problems with the current output. I think it is the output of current active channels and the output of a special channel which is a bit strange to parse. > > Currently manager output is deliberately pretty simple and easy to > parse. That format has to stay because of the indeterminate number of > existing clients that already depend on it. > Well, as I said before, I don't think so, but YMMV. :) > So what is the driver for XML and why, and how, should the core support > conversion between the existing simple format and XML? > Well, I did this in my code: if (s->xml) cw_cli(s->fd, XML_STRING); else cw_cli(s->fd, OLD_STRING); But I will think about a better solution, like a function that gets key<->pair values and prints "old" output or XML depending on the flag. In manager.conf I set xml=yes > Mike > Regards, Hauke -- phone-talk.de - Chats und Konferenzen Mail: [EMAIL PROTECTED] Tel.: 05251 / 284 3137 WWW : http://www.phone-talk.de _______________________________________________ Callweaver-dev mailing list [email protected] http://lists.callweaver.org/mailman/listinfo/callweaver-dev
