Here is your string you want to parse.. that lib will be too big to use.
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <s:Body> <u:GetBinaryState xmlns:u="urn:Belkin:service:basicevent:1"> <BinaryState>1</BinaryState> </u:GetBinaryState> </s:Body> </s:Envelope>
You should be able to treat as a string and search on <BinaryState> and then get the character at the next location - which would be 0 or 1
<BinaryState>
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here is your string you want to parse.. that lib will be too big to use.
You should be able to treat as a string and search on
<BinaryState>
and then get the character at the next location - which would be 0 or 1