Building "as xml" to console
Hi, friends there functions to do my xml output to console: example "tasks show the xml" and shows in xml, or have to build my output xml all manually ? Thanks
Check out switch_xml.c. I think a good example of this might be "fifo list_verbose". In mod_fifo.c approx line # 3644 it creates a new object of type switch_xml_t using switch_xml_new(). I think you'll find some handy things like adding xml child nodes, etc. Look in mod_fifo.c at the function list_node() for an example of how you can use the included tools to build up an XML structure. Then you can convert to text with switch_xml_toxml() function. Search for this line in mod_fifo.c: xml_text = switch_xml_toxml(x_report, SWITCH_FALSE); The context around that line is a good example of using these objects, printing them out and then safely freeing them from memory. -MC On Thu, Oct 14, 2010 at 2:33 PM, Eduardo Nunes Pereira < eduardonunesp@gmail.com> wrote:
Hi, friends
there functions to do my xml output to console: example "tasks show the xml" and shows in xml, or have to build my output xml all manually ?
Thanks _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
show tasks as xml thank you Le 14/10/2010 23:33, Eduardo Nunes Pereira a écrit :
Hi, friends
there functions to do my xml output to console: example "tasks show the xml" and shows in xml, or have to build my output xml all manually ?
Thanks
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Meftah Tayeb inum: +883510001288000 mobile: +213660347746
participants (3)
-
Eduardo Nunes Pereira
-
Meftah Tayeb
-
Michael Collins