Large RAM usage when parsing XML using Libxml2
问题 I'm downloading a XML file from an API with URLSessionDataTask. The XML looks like this: <?xml version="1.0" encoding="UTF-8" ?> <ResultList id="12345678-0" platforms="A;B;C;D;E"> <Book id="1111111111" author="Author A" title="Title A" price="9.95" ... /> <Book id="1111111112" author="Author B" title="Title B" price="2.00" ... /> <Book id="1111111113" author="Author C" title="Title C" price="5.00" ... /> <ResultInfo bookcount="3" /> </ResultList> Sometimes the XML may have thousands of books.