|The stupid question is the question not asked|
Issue with looping through XML::LibXML::Readerby ozguy (Novice)
|on Jan 20, 2012 at 20:47 UTC||Need Help??|
ozguy has asked for the
wisdom of the Perl Monks concerning the following question:
Long time Perl user, first time XML::LibXML::Reader user, and I've been banging my head against it for a number of days now.
The info on the module page isn't that great, but I've learned a lot through searching the monastery.
I have been able to get most of the data out of the following data, but am stuck on one field.
Here is an example of the XML data:
I have been able to get all data, except for each RptID and BizDt (seems to only capture the first RptID records value, and not the subsequent ones) with the following code:
For some reason it's only reading the first "MktDataFull" records attributes (RptID & BizDt), and not any of the others (the are .5 million records per file).
What am I doing wrong? Any advice will be greatly appreciated.
On a side note, the file I'm reading has a half a million records in it, and is 150MB in size. Is there any other form of XML parser that would be easier and/or faster for this task?
Once again, any advice will be greatly appreciated guru's.