Added Serialize and fixed bug when the xml return an empty value