• 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

About

Avatar for Wilberforce @Wilberforce started