Fixed issues in Synthetic table and SimpleXML writer