We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Storing <data> info into variables

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Storing <data> info into variables

Post by support »

This would be the correct syntax:

Code: Select all

<data name="thedata" src="http://someplace.com/GetXMLData/"/>

<block>
  <assign name="grass" expr="thedata.documentElement.childNodes.item(0).firstChild.toString()"/>.
  <assign name="sky" expr="thedata.documentElement.childNodes.item(1).firstChild.toString()"/>.
  <assign name="stream" expr="thedata.documentElement.childNodes.item(2).firstChild.toString()"/>.
</block>
Regards,
Plum Support

Post Reply