转义符 \ 加上引号 \"
<?xml version="1.0"encoding="GBK"?>String temp = "<?xml version=" + "\"" + "1.0" + "\"" + " encoding=" + "\"" + "GBK" + "\"" + "?>";