I made a wrapper for some basic things in libxml2, stuff like grabbing element content, stepping into children nodes etc.
My super has just asked me to make sure I’m parsing the XML file serially and not loading the entire DOM into memory.
I’m pretty sure the I’m doing it serially, but I couldn’t find any documentation on parsing one way or the other.
Any help is appreciated, thanks!
libxml2 can operate in either mode. It just depends how your code uses it. You can either parse the full file into a DOM, or use Sax callbacks to parse serially. What does your parsing code look like?