I'm trying to do some text mining to elsevier articles. I had downloaded the articles in XML format and i successfully used the XML2 library to read the text I needed.
My problem is to get data from the attribute fields, like this one:
<ce:date-received day="17" month="11" year="2016"/>
Reading the file xx <- read_xml(filename)
and then trying to call xml_find_all(xx, ".//ce:date-received")
isn't working (no results). xml_attr(xx,"day")
isn't working either.
What is the right way to do this?
Thanks.