我有符合©
符號的xml文件。但是SQL不能解析這樣的XML,對此有沒有解決方法?SQL Server:從xml解析版權符號
這個查詢:
declare @XmlResponse as xml;
select @XmlResponse = '<?xml version="1.0" encoding="utf-8"?><Response>©</Response>'
select @XmlResponse as myxml
返回一個錯誤:
Msg 9420, Level 16, State 1, Line 15
XML parsing: line 1, character 49, illegal xml character
感謝XML實體。 – 2013-02-15 16:00:23
+1很高興認識這個。 – Kaf 2013-02-15 16:02:17