fix bug when save string to xml type in DB

this is MSSQL issue, which not allow save xml string with "xml
declaration", i.e <?xml version="1.0" encoding="UTF-8"?>