Error in importing XML file
I'm writing the same code as shown in the video and also installed libxml2 package but as soon as I run the below code I get the mentioned error.
Error in (function (cond) :
error in evaluating the argument 'doc' in selecting a method for function 'xmlToDataFrame': XML content does not seem to be XML: ''
Code:
library(XML)
xmlData <- xmlToDataFrame("MyCaptaincyXML.xml")
View(xmlData)
R Merging-and-Importing-Data 10-11 min 30-40 sec
Answers:
There may be some issue in the file. Please retry with the xml file given in the resources whether it is importing or not. Or check with another file.