I have an XML file about 200 MB in size, I want to extract the selected information line by line.
I wrote a script with perl using the XML :: LibXML module to parse the contents of a file and then encode the contents and extract the information line by line. This is inefficient because it reads the entire file in memory, but I like LibXML because I can use the XPath locations of the required information.
May I get suggestions on how to improve the performance of my code.
Through a search, I was introduced to XML :: SAX and XML :: LibXML :: SAX, but I can not find the documentation that explains the use, and they do not seem to contain any XPath addressing structure.
fir3x source
share