I am very new to xml and need some help!!
I need to extract a certain value from nodes in an xml file, and then store that value in a variable in php.
Have struggled through many internet solutions but are still unsuccessful.
Any help would be appreciated.

Here are the xml:

    <sns id="1" type="1" status="0" unit="0" val="21.3" w-min="" w-max="" e-min-val="      0.00" e-max-val="     24.31" e-min-dte="00/00/2000 00:00:00" e-max-dte="06/26/2013 10:46:26"/>
    <sns id="2" type="2" status="0" unit="3" val="23.7" w-min="" w-max="" e-min-val="      0.00" e-max-val="     55.62" e-min-dte="00/00/2000 00:00:00" e-max-dte="06/26/2013 10:45:49"/>
    <sns id="3" type="3" status="0" unit="0" val="-0.2" w-min="" w-max="" e-min-val="     -1.07" e-max-val="     14.37" e-min-dte="06/28/2013 07:09:53" e-max-dte="06/26/2013 10:45:49"/><status location="TH2E_LOG" time="06/28/2013  8:59:56"/>

I need the 'e-max-val' attribute and store it in variables as follows
ID ="1" = $temp
ID ="2" = $hum
ID ="3" = $dew

5 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.