Web服务中的XML解析错误 [英] XML Parsing Error in webservices
本文介绍了Web服务中的XML解析错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从``nvarchar''类型的数据字段中检索数据时遇到一个问题,该数据字段具有来自sql server 2008的unicode数据,并使用c#在asp.net 3.5中使用Web服务将数据转换为xml格式. >
我收到"XML解析错误:对无效字符编号的引用"的错误.
我曾在Google尝试过,但无法解决自己的问题.
请帮帮我...
Hi,
I am facing a problem when I am retreiving a data from data field of type ''nvarchar'' which has unicode data from sql server 2008 and converting the data to xml format using web service in asp.net 3.5 with c#.
I am getting an error as "XML Parsing Error: reference to invalid character number".
I tried in google but i couldn''t solve my problem.
Please, Help me...
推荐答案
在此处检查AMNikolay Glushnev给出的答复:http://social.msdn.microsoft.com/Forums/en/xmlandnetfx/thread/0c1249c0-6938-4245-9b65-fe4d0624a368 [ ^ ]
Check the reply given by AMNikolay Glushnev here: http://social.msdn.microsoft.com/Forums/en/xmlandnetfx/thread/0c1249c0-6938-4245-9b65-fe4d0624a368[^]
您的xml中可能包含无效字符.调试器有帮助吗?
You may have an invalid character in your xml. Does the debugger help at all?
这篇关于Web服务中的XML解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文