assistunion/xml-stream — Issue #5: preserving mixed content when updateElement
Author: pherk
Created: 2011-10-19 10:04:56+00:00
State: open

I would like to chunk/update a xml file item by item. the item nodes can have mixed content:
thisfoo(1)isfoo(2)textfoo(3)content

mixed content should be preserved for my application.

with version 0.3.2:
if not in collect mode
multiple subitems with identical names are overwritten by the last one.
if in collect mode
subitems are preserved *but*
text in mixed content nodes is collected part by part
so original ordering of mixed content cannot reconstructed in updateElement callback

the use of finite automaton is very sophisticated. I will try to modify xml.endElement and xml.text, e.g. introducing an array for mixed content, but I am not shure whether it's so easy ;-)

regards
Peter