[Baypiggies] Constructing XML

Keith Dart keith at dartworks.biz
Wed Oct 6 21:37:42 CEST 2010


=== On Wed, 10/06, Venkatraman S wrote: ===
> strtag="Hello World"
> listtag = [10,20,30]
> dicttag={'a':100,'b':200}
> 
> And when the above variables are fed into a black box, i get the
> output xml: <strtag>Hello World</strtag>

===

It looks like you want XML serialized objects. You might be interested
in this recipe:

http://code.activestate.com/recipes/355487-pickle-python-objects-to-a-dom-tree-and-vice-versa/

Try googling for XML serialized objects. I think there are more.


-- Keith Dart

-- 
-- ------------------------------
Keith Dart
=================================



More information about the Baypiggies mailing list