• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    xml query

    User help
    4
    5
    2.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wiecking
      last edited by

      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.
      aloha
      b

      1 Reply Last reply Reply Quote 0
      • Jeremy HallJ
        Jeremy Hall
        last edited by

        These devices support Modbus-TCP, don't they? You could use this instead of XML.

        1 Reply Last reply Reply Quote 0
        • W
          wiecking
          last edited by

          Not the analog units, only xml. Any ideas?
          b

          1 Reply Last reply Reply Quote 0
          • JoelHaggarJ
            JoelHaggar
            last edited by

            I have used the HTTP Retriever to parse XML from a URL. I wonder if you just need to get your regex correct?

            1 Reply Last reply Reply Quote 0
            • terrypackerT
              terrypacker
              last edited by

              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:

              <input0state>(.*)</input0State>

              1 Reply Last reply Reply Quote 0
              • First post
                Last post