I’m trying to import just the data value (in this case 42.0) into Flash. I’m not a programmer, but have followed the excellent tutorial on this site, and still can’t get it to work. I’m thinking maybe the eeml requires a special kind of syntax?
I’m able to import the entire set of data, but as soon as I enter any filter (shown as anyelement below) after feedInput the trace output gives me nothing.
trace(feedInput.anyelement);
xml looks like this:
<eeml version="5" xsi:schemaLocation="http://www.eeml.org/xsd/005 http://www.eeml.org/xsd/005/005.xsd" xmlns="http://www.eeml.org/xsd/005" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<environment updated="2009-11-10T01:38:00Z" id="2356" creator="http://www.haque.co.uk">
<title>Cat bed</title>
<feed>http://www.pachube.com/api/feeds/2356.xml</feed>
<status>live</status>
<description>Experimental feed which detects whether my cats are on the catbed. Any number over 10 indicates a positive reading. :)</description>
<location domain="physical" exposure="indoor" disposition="fixed">
<name>Austin</name>
<lat>30.3121938136654</lat>
<lon>-97.7255880832672</lon>
</location>
<data id="0">
<tag>catbed</tag>
<tag>analogRead0</tag>
<tag>analogRead2</tag>
<tag>pressure sensor</tag>
<tag>cat bed</tag>
<value minValue="0.0" maxValue="312.0">42.0</value>
<unit/>
</data>
</environment>
</eeml>
Thanks for any help,
tori