Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 如何在sql server中使用带特殊字符的大写xml?_Sql Server_Xml_Tsql_Sql Server 2005_Xml Parsing - Fatal编程技术网

Sql server 如何在sql server中使用带特殊字符的大写xml?

Sql server 如何在sql server中使用带特殊字符的大写xml?,sql-server,xml,tsql,sql-server-2005,xml-parsing,Sql Server,Xml,Tsql,Sql Server 2005,Xml Parsing,我需要将XML大写,但XML可能有一些特殊字符,如

我需要将XML大写,但XML可能有一些特殊字符,如<&”,因此我将XML中的这些字符替换为
()
(&;)
(”
),然后当我使用upper执行ucase时,我得到以下结果:

XML解析:第1行,字符387,格式正确的检查:未声明的实体

如何避免这种情况?这样我就可以使用XML了


必须是小写。因此,在编码特殊字符之前,可以尝试使用大写。

不应将XML视为字符串。使用“大写”XML毫无意义,因为您可能会将其转换为无效的XML。