<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE TAF SYSTEM "tango.dtd" >
<TAF Version="0x02000002" Debug="True">
	<Comments />

	<!--Main program-->
	<Program>
		<ActionRef Ref="If_yes">
			<ActionRef Ref="Results" />
		</ActionRef>
		<ActionRef Ref="If_no">
			<ActionRef Ref="Results1" />
		</ActionRef>
	</Program>

	<!--Program actions-->
	<Actions>
		<IfAction ID="If_yes" Sig="if  " Expanded="True">
			<Expression><![CDATA[('<@ARG strip>'='yes')]]></Expression>
			<ExpressionInfo>
				<ExpLeft><![CDATA[<@ARG strip>]]></ExpLeft>
				<ExpRight>yes</ExpRight>
				<Operator>iseq</Operator>
			</ExpressionInfo>
		</IfAction>
		<ResultAction ID="Results" Sig="null">
			<ResultsOutput Ref="Results.Results" />
		</ResultAction>
		<IfAction ID="If_no" Sig="if  " Expanded="True">
			<Expression><![CDATA[('<@ARG strip>'='no')]]></Expression>
			<ExpressionInfo>
				<ExpLeft><![CDATA[<@ARG strip>]]></ExpLeft>
				<ExpRight>no</ExpRight>
				<Operator>iseq</Operator>
			</ExpressionInfo>
		</IfAction>
		<ResultAction ID="Results1" Sig="null">
			<ResultsOutput Ref="Results1.Results" />
		</ResultAction>
	</Actions>

	<!--Data sources-->
	<DataSources />

	<!--Output blocks-->
	<Outputs>
		<Output ID="Results.Results" Type="HTML"><![CDATA[<@! COMMENT="get original xml"><@assign name="request$weather" value="<@url location='http://www.nws.noaa.gov/data/current_obs/KBEH.xml'>"><@! COMMENT="remove namespace info"><@assign request$weather <@REPLACE STR="@@request$weather" FINDSTR="xmlns:" REPLACESTR="">><@assign request$weather <@REPLACE STR="@@request$weather" FINDSTR="xsi:" REPLACESTR="">><@! COMMENT="create dom object"><@ASSIGN NAME="myDom" SCOPE="request" VALUE="<@DOM VALUE='@@request$weather'>"><@! COMMENT="output array for"><@ELEMENTVALUE object=request$myDom xpath="//current_observation/*" type="array">]]></Output>
		<Output ID="Results1.Results" Type="HTML"><![CDATA[<@! COMMENT="get original xml"><@assign name="request$weather" value="<@url location='http://www.nws.noaa.gov/data/current_obs/KBEH.xml'>"><@! COMMENT="create dom object"><@ASSIGN NAME="myDom" SCOPE="request" VALUE="<@DOM VALUE='@@request$weather'>"><@! COMMENT="output array for"><@ELEMENTVALUE object=request$myDom xpath="//current_observation/*" type="array">]]></Output>
	</Outputs>
</TAF>
