r - Cannot run xmlParse() -
i trying read xml file using function xmlparse() on rstudio . have installed , loaded (globally) packages required this, namely xml , methods . here code: setwd("~/desktop/r ") xmlparse(file = "input.xml") i set directory file input.xml located. information in file looks this: <records> <employee> <id>1</id> <name>rick</name> <salary>623.3</salary> <startdate>1/1/2012</startdate> <dept>it</dept> </employee> <employee> <id>2</id> <name>dan</name> <salary>515.2</salary> <startdate>9/23/2013</startdate> <dept>operations</dept> </employee> <employee> <id>3</id> <name>michelle</name> <salary>611</salary> <startdate>11/15/2014</startdate> <dept>it</dept> </employee> &