Hi,
Iv`e reached the end of my string here with a get/http return message from a IP camera where I will extract some data to make a download link. The request message returns a string with:
?xml version="1.0"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.axis.com/vapix/http_cgi/recording/list1.xsd">
<recordings totalnumberofrecordings="9" numberofrecordings="9"> <recording diskid="SD_DISK" recordingid="20201225_124627_148A_ACCC8E9C6AC1" starttime="2020-12-25T11:46:27.875685Z" starttimelocal="2020-12-25T12:46:27.875685+01:00" stoptime="2020-12-25T19:11:56.181874Z" stoptimelocal="2020-12-25T20:11:56.181874+01:00" recordingtype="continuous" eventid="continuous_0" eventtrigger="continuous" recordingstatus="recording" source="1" locked="No"> <video mimetype="video/x-h264" width="1920" height="1080" framerate="30:1" resolution="1920x1080"/>
</recording>
<recording diskid="SD_DISK" recordingid="20201129_213935_328F_ACCC8E9C6AC1" starttime="2020-11-29T20:39:35.215442Z" starttimelocal="2020-11-29T21:39:35.215442+01:00" stoptime="2020-11-29T20:43:39.712775Z" stoptimelocal="2020-11-29T21:43:39.712775+01:0....
And so it continues depending on the number of recordings. Im trying to extract all data between recordingid=< and >recording type , seperated so I can push them on to a UI list where each recording will push the needed data via a function and get request.
Is moving it from a string to an array and digging into indexOf() functions the correct path?