Answer the question
In order to leave comments, you need to log in
Direct URL link to xml element for parser?
Hello. Please help. We are writing a parser that will spin on the ESP8266 and parse data from various devices, converting them into a single format. We've dealt with JSON. With XML there is no understanding. Can anyone suggest if it is possible to feed the parser a direct link to an XML array element?
For example, the device collects temperature values from the number of DS18B20 sensors and puts them on the web in the form of xml
http://xxx.xxx.xxx.xxx:80/status.xml , inside the name and temperature.
I would like to get a url for each of these parameters - is it possible?
Answer the question
In order to leave comments, you need to log in
Yes, if there is unique data in xml (eg id). Parse all xml in a loop, using, for example, xpath, you are looking for the desired node. If the node is found, read the name of the file in which it was found.
Perhaps I misunderstood your task.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question