XML embedded into HTML?

Lex

New member
I have a Giest temperature sensor that updates a XML file every 60sec or so. What I would like to do is be able to display that temperature text within a HTML page.

The XML file looks like this:

<server host="Geist Environmental Mon Switch" address="10.255.1.215" address-backup="192.168.123.123" name="RSMINI163" version="2.86" pversion="1.00" mac-address="00:40:9D:31:0C:05" datetime="Fri, 28 Jan Time: 12:50:57 PM" company="Geist Manufacturing" company-url="http://www.geistmfg.com" support-email="[email protected]" support-phone="800.432.3219" console-id="wxg" buzzer="0" tempunit="F">
<cameras>
</cameras>
-
<devices>
-
<device id="28A5A4BD01000022" name="Geist Environmental Mon Switch" type="MiniRSE" available="1" index="0">
<field key="TempC" value="25.50" niceName="Temperature (C)" min="-20" max="50" type="2"/>
<field key="TempF" value="77.90" niceName="Temperature (F)" min="-4" max="122" type="2"/>
<field key="IO1" value="99.00" niceName="IO-1" min="0" max="99" type="2"/>
<field key="IO2" value="99.00" niceName="IO-2" min="0" max="99" type="2"/>
<field key="IO3" value="99.00" niceName="IO-3" min="0" max="99" type="2"/>
</device>
-
<device id="CA000001B7D2B628" name="CLT1 Power Room" type="TempSensor" available="1" index="1">
<field key="TempC" value="22.50" niceName="Temperature (C)" min="-20" max="50" type="2"/>
<field key="TempF" value="72.50" niceName="Temperature (F)" min="-4" max="122" type="2"/>
</device>
I am not looking to display the entire XML file just certain fields. And if it helps the XML file is read only, I can not edit or chance the file, I am looking to just use it as a source to display temperature readings.
 
Back
Top