I am completely new to this but already figured out how to extract the data I need from an xml file. However, one of the variables I want is the date and time as Posixct. I used the following to extract:
datax<-xmlParse("myfile.xml")
data<-xmlToList(datax)
date<-as.vector(unlist(data$.attrs[5]))
And I got the data as "2019-07-02T06:05:00". How should I change the code so that the extracted data looks like "2019-07-02 06:05:00"? I would be grateful for some help!