Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79252 > unrolled thread

Processing xml for output with cElementTree

Started by"Joseph L. Casale" <jcasale@activenetwerx.com>
First post2014-10-17 20:35 +0000
Last post2014-10-17 20:35 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Processing xml for output with cElementTree "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-10-17 20:35 +0000

#79252 — Processing xml for output with cElementTree

From"Joseph L. Casale" <jcasale@activenetwerx.com>
Date2014-10-17 20:35 +0000
SubjectProcessing xml for output with cElementTree
Message-ID<mailman.14952.1413578176.18130.python-list@python.org>
I am unfortunately unable to use lxml for a project and must resort to base only libraries
to create several nested elements located directly under a root element. The caveat is the
incremental writing and flushing of the nested elements as they are created.

So assuming the structure is <a><b><c>text</c><d>text</d></b></a> if I would like to
manually deconstruct this in order to write each element in order of appearance, is there
any built in facility for this?

The way I am currently doing is rather pathetic...

Thanks,
jlc

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web