I am new to processing. I have a USB stick that is receiving XML data from a Smart Meter, the data looks like this
<InstantaneousDemand>
<DeviceMacId>0xxxxxxx</Devi<InstantaneousDemand>
<DeviceMacId>0xxxxxx</DeviceMacId>
<MeterMacId>0xxxxxxxx</MeterMacId>
<TimeStamp>0x178dbddb</TimeStamp>
<Demand>0x0000000000000671</Demand>
<Multiplier>0x00000001</Multiplier>
<Divisor>0x000003e8</Divisor>
<DigitsRight>0x03</DigitsRight>
<DigitsLeft>0x0f</DigitsLeft>
<SuppressLeadingZero>Y</SuppressLeadingZero>
</InstantaneousDemand>
This is repeated, although other XML is also returned at other times.
I want to extract the Demand value out so I can graph it in real time, how do I process the XML?
Thankyou
1