XML Creation - streaming output
Hello, I have been very happy with lxml so far, so thanks again for maintaining this for so long! However, there is a use case that lxml does not provide, and i'm not sure if its a limitation of libxml2 or not, but while there is a streaming parser for xml, there is no such thing for outputting / generating xml. As a result, generating a very large XML file is completely dependent on having a quite large amount of computer memory which many people (like me) don't have! Is there some hidden api in lxml, or maybe an api in libxml2 (that hasn't been made available for lxml) that accomplishes this? Thanks! ~mark
Mark Grandi, 04.04.2014 23:39:
I have been very happy with lxml so far, so thanks again for maintaining this for so long! However, there is a use case that lxml does not provide, and i'm not sure if its a limitation of libxml2 or not, but while there is a streaming parser for xml, there is no such thing for outputting / generating xml. As a result, generating a very large XML file is completely dependent on having a quite large amount of computer memory which many people (like me) don't have!
Is there some hidden api in lxml, or maybe an api in libxml2 (that hasn't been made available for lxml) that accomplishes this?
Not exactly hidden: http://lxml.de/api.html#incremental-xml-generation Stefan
participants (2)
-
Mark Grandi -
Stefan Behnel