读取存储过程中的xml时出错-reg [英] Error reading the xml in the stored procedure - reg

查看:76
本文介绍了读取存储过程中的xml时出错-reg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

(i)我正在使用SP_XML_PREPAREDOCUMENT来获取以xml字符串形式发送的值.但是,使用此功能缺少一些文本.
我得到的错误是"XML解析错误:名称包含无效字符.".

(ii)使用SP_XML_PREPAREDOCUMENT转换xmlstring的最大大小是多少.我正在使用sql server2000.

预先感谢,

Riswan

Hai,

(i) I''m using the SP_XML_PREPAREDOCUMENT to get values which I sent as xml string. But some of the text are missing by using this.
The error I''m getting is "XML parsing error: A name contained an invalid character.".

(ii) What is the maximum size to convert the xmlstring using the SP_XML_PREPAREDOCUMENT. I''m using sql server 2000.

Thanks in advance,

Riswan

推荐答案

有时,当我们在XML字符串中有一些特殊字符(例如"_x0020_")或处理空值或在使用西里尔字母指定有效编码后,会出现此错误由SP_XML_PREPAREDOCUMENT
Sometimes this error came when we have some special character in XML sting like "_x0020_" or handle null values or specify a valid encoding for Cyrillic alphabets before use it by SP_XML_PREPAREDOCUMENT


这篇关于读取存储过程中的xml时出错-reg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆