Alain Ketterlin <al...@dpt-info.u-strasbg.fr>: > Technically speaking, this is not a well-formed XML document (it is a > well-formed external general parsed entity, though). If you have other > XML processors in your workflow, they will/should reject it.
Sometimes the XML elements come through a pipe as an endless sequence. You can still use the wrapping technique and a SAX parser. However, the other option is to write a tiny XML scanner that identifies the end of each element. Then, you can cut out the complete XML element and hand it over to a DOM parser. Such a scanner can be really small and nonrecursive because of the welformedness rules of XML. Marko -- https://mail.python.org/mailman/listinfo/python-list