I have the folowing XML file generated by my iLO HP server, Do you have any examples of how can i parse it ? See the example XML file below. I would like to extract fan speeds and temperatures from it.
<?xml version="1.0"?>
<GET_EMBEDDED_HEALTH_DATA>
<FANS>
<FAN>
<LABEL VALUE = "Fan 1"/>
<ZONE VALUE = "System"/>
<STATUS VALUE = "Ok"/>
<SPEED VALUE = "81" UNIT="Percentage"/>
</FAN>
<FAN>
<LABEL VALUE = "Fan 2"/>
<ZONE VALUE = "System"/>
<STATUS VALUE = "Not Installed"/>
<SPEED VALUE = "n/a" UNIT="n/a"/>
</FAN>
<FAN>
<LABEL VALUE = "Fan 3"/>
<ZONE VALUE = "System"/>
<STATUS VALUE = "Ok"/>
<SPEED VALUE = "81" UNIT="Percentage"/>
</FAN>
<FAN>
<LABEL VALUE = "Fan 4"/>
<ZONE VALUE = "System"/>
<STATUS VALUE = "Not Installed"/>
<SPEED VALUE = "n/a" UNIT="n/a"/>
</FAN>
<FAN>
<LABEL VALUE = "Fan 5"/>
<ZONE VALUE = "CPU 1"/>
<STATUS VALUE = "Ok"/>
<SPEED VALUE = "81" UNIT="Percentage"/>
</FAN>
<FAN>
<LABEL VALUE = "Fan 6"/>
<ZONE VALUE = "CPU 2"/>
<STATUS VALUE = "Not Installed"/>
<SPEED VALUE = "n/a" UNIT="n/a"/>
</FAN>
</FANS>
<TEMPERATURE>
<TEMP>
<LABEL VALUE = "Temp 1"/>
<LOCATION VALUE = "Ambient"/>
<STATUS VALUE = "Ok"/>
<CURRENTREADING VALUE = "32" UNIT="Celsius"/>
<CAUTION VALUE = "40" UNIT="Celsius"/>
<CRITICAL VALUE = "45" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 2"/>
<LOCATION VALUE = "Memory"/>
<STATUS VALUE = "Ok"/>
<CURRENTREADING VALUE = "48" UNIT="Celsius"/>
<CAUTION VALUE = "110" UNIT="Celsius"/>
<CRITICAL VALUE = "120" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 3"/>
<LOCATION VALUE = "CPU 1"/>
<STATUS VALUE = "Ok"/>
<CURRENTREADING VALUE = "30" UNIT="Celsius"/>
<CAUTION VALUE = "100" UNIT="Celsius"/>
<CRITICAL VALUE = "100" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 4"/>
<LOCATION VALUE = "CPU 1"/>
<STATUS VALUE = "Ok"/>
<CURRENTREADING VALUE = "30" UNIT="Celsius"/>
<CAUTION VALUE = "100" UNIT="Celsius"/>
<CRITICAL VALUE = "100" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 5"/>
<LOCATION VALUE = "I/O Board"/>
<STATUS VALUE = "Ok"/>
<CURRENTREADING VALUE = "46" UNIT="Celsius"/>
<CAUTION VALUE = "63" UNIT="Celsius"/>
<CRITICAL VALUE = "68" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 6"/>
<LOCATION VALUE = "CPU 2"/>
<STATUS VALUE = "n/a"/>
<CURRENTREADING VALUE = "n/a" UNIT="n/a"/>
<CAUTION VALUE = "100" UNIT="Celsius"/>
<CRITICAL VALUE = "100" UNIT="Celsius"/>
</TEMP>
<TEMP>
<LABEL VALUE = "Temp 7"/>
<LOCATION VALUE = "CPU 2"/>
<STATUS VALUE = "n/a"/>
<CURRENTREADING VALUE = "n/a" UNIT="n/a"/>
<CAUTION VALUE = "100" UNIT="Celsius"/>
<CRITICAL VALUE = "100" UNIT="Celsius"/>
</TEMP>
</TEMPERATURE>