Page 1 of 1

Re: Storing <data> info into variables

Posted: Thu Mar 22, 2012 2:27 pm
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