i'm using ControlByWeb devices that respond to http queries such as http://192.168.1.1/state.xml with an xml dump of data in the format <input0state> 345 </input0state>.
I can parse the html using the http retriever command, but need to be able to read and parse the xml data instead. Tried using the tcp/ip module with IP and port 80, using the string, but no joy.
These devices support Modbus-TCP, don't they? You could use this instead of XML.
Not the analog units, only xml. Any ideas?
I have used the HTTP Retriever to parse XML from a URL. I wonder if you just need to get your regex correct?
I agree with Joel. The HTTP Retriever would work fine for this. Regex is cumbersome to work with but very powerful.
I haven't had time to test this and I don't know what the entire XML response looks like but here is an example regex string that should get you close: