XML writer fix
XML writer fix

Wosi/DelphiASTTemp,monkeyxu/DelphiAST,LaKraven/DelphiAST,RomanYankovsky/DelphiAST,NickRing/DelphiAST,AmesianX/DelphiAST,Wosi/DelphiAST,uschuster/DelphiAST,vintagedave/DelphiAST