Created
September 4, 2009 21:33
-
-
Save johntdyer/181158 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<values> | |
<value> | |
<nid>33</nid> | |
<name>Grand Strand Hospital</name> | |
<type>ppcg_dcs</type> | |
<vid>33</vid> | |
</value> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<callxml version="3.0"> | |
<fetch value="example.xml" var="myFetch" type="xml"/> | |
<block label="Axes" value="$myFetch;"> | |
<assign var="nid" expr="/var/myFetch/value/nid[1]/text()"/> | |
<assign var="name" expr="/var/myFetch/value/name[1]/text()"/> | |
<assign var="type" expr="/var/myFetch/value/type[1]/text()"/> | |
<assign var="vid" expr="/var/myFetch/value/vid[1]/text()"/> | |
<log>*** NID: $nid; ***</log> | |
<log>*** Name: $name; ***</log> | |
<log>*** Type: $type; ***</log> | |
<log>*** VID: $vid; ***</log> | |
<say> our NID is $nid; </say> | |
<say> Name returned is $name; </say> | |
<say> Type is $type; </say> | |
<say> VID is $vid </say> | |
</block> | |
</callxml> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment