I am writing a specialized xml serialization function, and I would like to be able to serialize the value of a simple object with the object name as the tag. For example:
first_name = 'Fred'
sXML = my_xml_serializer(first_name)
should result in sXML = '<first_name>Fred</first_name>'
I can get class and field names, but how do I find the name of a simple variable?
Thanks!
- Gardner
-- http://mail.python.org/mailman/listinfo/python-list