SAXON

a file.xql

doc("w.xml")/xml_api_reply/weather/current_conditions/temp_f/@data/string(.)

run command

java net.sf.saxon.Query -s:file.xml file.xql >output.xml