Parsing an XML SAX way in R
Originating from this question, my research of R (and other) documentation indicates that SAX approach will be a faster way to parse XML data. Sadly I couldn't find much working examples for me to understand how to get there. Here's a dummy file with information that I want parsed. The real thing would have substantially more <ITEM> nodes and other nodes all around the tree that I would like to exclude. Another peculiarity is that the <META> section has two <DESC> elements, and I need any one of them (not both). <FILE> <HEADER> <FILEID>12347</FILEID> </HEADER> <META> <DESC> <TYPE>A</TYPE>