I have a python list as
[
(A,{'a':1,'b':2,'c':3,'d':4}),
B,{'a':1,'b':2,'c':3,'d':4}),
...
]
I want to know if there is a standard library of serializing this kind of list to xml or should I hand code it to a file.
Edit : Added Detail
Assuming this is used to construct a message such that
message = A( Feild attributes{'a':1,'b':2,'c':3,'d':4}) || B Field attributes{'a':1,'b':2,'c':3,'d':4}) || C Field attributes{'a':1,'b':2,'c':3,'d':4})