On 18 Jan 2024, at 18:10, Charlie Clark wrote: > Apart from the fact that this currently doesn't work, I imagine that both > Elements and their children would happily be passed to the write, which could > lead to an almighty mess. Getting this to work properly, possibly rewritten > for async to avoid the awfully awful (yield) hack could be a nice addition to > the documentation.
Thinking about this again, I think a pull parser is probably the way to go as I really don't want or need to create elements, it's probably fine if I just make the changes to what's coming through and stream the text straight back into another file. I'll give that a go. Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Sengelsweg 34 Düsseldorf D- 40489 Tel: +49-203-3925-0390 Mobile: +49-178-782-6226 _______________________________________________ lxml - The Python XML Toolkit mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: [email protected]
