The xml_access module demonstrates how to read device status and configuration values via XML.
Build it from project "xmlAccessDemo".
Note that results are sent to the log via a character buffer. If you were sending to a Line or network interface, you could instead stream the result without requiring a buffer.