We need a streaming XML serializer which does not require to keep in memory the whole object tree

Bug #1215432 reported by Michele Simionato
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Natural hazards' Risk Markup Language (NRML)
Fix Committed
High
Michele Simionato

Bug Description

This is a long standing issue. Both elementtree and lxml do not have an easy way to solve the problem. We could use third parties libraries such as https://pypi.python.org/pypi/elementflow/ , however it is not worth the pain to introduce an external dependency when the problem can be easily solved by using the xml.saxutils.XMLGenerator class in the standard library.

Revision history for this message
Michele Simionato (michele-simionato) wrote :
Changed in oq-nrmllib:
milestone: none → 0.4
milestone: 0.4 → none
assignee: nobody → Michele Simionato (michele-simionato)
importance: Undecided → High
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.