mod_curl: how to parse xml response?
Hi All, (This is my second post - are posts delayed? I never received an acknowledgment message.) I want to use mod_curl to query a web service and then extract information from the XML response. <response> <value1>test</value1> <value2>blah</value2> </response> I then want to use TTS to speak the values to the caller. How can I do this? I tried searches for "freeswitch parse xml" and other variations but all just talk about how FreeSWITCH parses config files. I see that people have created libraries for Lua proper but looking at the doc, there doesn't appear to be any functions to parse XML from within Lua. Thanks, James
If you sent your first message before you subscribed to the mailing list then you were most likely moderated. In that case there can be a delay, especially if our moderators were asleep when your first email went through. :) That being said, I responded to your first email so go check that thread. :) -MC On Fri, Feb 4, 2011 at 9:37 AM, james.royer@gmail.com <james.royer@gmail.com
wrote:
Hi All,
(This is my second post - are posts delayed? I never received an acknowledgment message.)
I want to use mod_curl to query a web service and then extract information from the XML response.
<response> <value1>test</value1> <value2>blah</value2> </response>
I then want to use TTS to speak the values to the caller.
How can I do this?
I tried searches for "freeswitch parse xml" and other variations but all just talk about how FreeSWITCH parses config files.
I see that people have created libraries for Lua proper but looking at the doc, there doesn't appear to be any functions to parse XML from within Lua.
Thanks, James _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
james.royer@gmail.com
-
Michael Collins