> In most languages, I'll do something like this > > xmlWriter.BeginElement("parent"); > ----xmlWriter.BeginElement("child"); > ----------xml.Writer.Characters("subtext"); > ----xmlWriter.EndElement(); > xmlWriter.EndElement(); > > Where the dashes are indentation (since some newsgroup handlers don't > do tabs well). XML writing is just an example.
Well, XML beeing just an example.. but still for XML in Python you probably want to use some XML templating library like Genshi. And for other stuff there are probably similar sollutions. -- дамјан ( http://softver.org.mk/damjan/ ) war is peace freedom is slavery restrictions are enablement -- http://mail.python.org/mailman/listinfo/python-list