IMP Allow xml as str in lists for building

Allow xml as str (serialized) for better memory management when lists are very big.