How to transform a xml file into data.frame

the idea came from http://www.r-bloggers.com/r-and-the-web-for-beginners-part-ii-xml-in-r/