An external application provides me data with HTTP server-push. I call the API function and then I'm constantly receiving event notifications. API send me XML data stream like below:
HTTP/1.1 200 OK
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=boundary
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 486
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<dateTime>2017-03-17T11:43:04+01:00</dateTime>
<eventDescription>alarm</eventDescription>
</EventNotificationAlert>
--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 480
<EventNotificationAlert version="2.0" xmlns="Oops:The page you are visiting may have been deleted,renamed or inaccessible.">
<dateTime>2017-03-17T11:47:47+01:00</dateTime>
<eventDescription>alarm</eventDescription>
</EventNotificationAlert>
I need to get each DateTime and EventDescription of the XML content data stream and insert it in the database. How to manage a stream of data? Which technology would be the best?
PHP was in my mind, but I don't know how to approach this issue, I am just lost.