由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - hexadecimal value 0x00, is an invalid ch
相关主题
Mutually exclusive attributesusing weather XML feed in C# - 1
BUG! Re: xmldocument and webserviceusing weather XML feed in C# - 2
从国内连接 mitbbsdiffGram Re: using weather XML feed
HTTP GET over SSL in C#screebshot: winform based weather app
Windows filesystem bugweb service Re: .NET 入门系列(1)--什么是.NET
同事的这个generic工厂interface让我蛋疼WSDL
[转载] 申请.NET 版SOAP
.NET 入门系列(2)--Web Services,XML,SOAPmouse over
相关话题的讨论汇总
话题: 0x00话题: invalid话题: value话题: xml
进入DotNet版参与讨论
1 (共1页)
c******o
发帖数: 26
1
i have a web service returning a big xml, it works fine with the default test
page on .asmx page. but when i built a client using the proxy class,and used
it to retrieve the XML and tried to print it out in a text box, got error:
hexadecimal value 0x00, is an invalid character. Line 1, position 12345.
any idea what is wrong? i googled and didn't find much helpful information
including the one below
http://www.dotnet247.com/247reference/msgs/43/217663.aspx
thanks a bunch
c******o
发帖数: 26
2
it seems that the xml string have a 0x00 character at the end which needs to
be got rid of ....
like this:
thisString.Trim(Convert.ToChar(0));

test

【在 c******o 的大作中提到】
: i have a web service returning a big xml, it works fine with the default test
: page on .asmx page. but when i built a client using the proxy class,and used
: it to retrieve the XML and tried to print it out in a text box, got error:
: hexadecimal value 0x00, is an invalid character. Line 1, position 12345.
: any idea what is wrong? i googled and didn't find much helpful information
: including the one below
: http://www.dotnet247.com/247reference/msgs/43/217663.aspx
: thanks a bunch

e****e
发帖数: 1775
3
isn't that a null value and thus different from null string, so u have to treat
it separately and specially?

【在 c******o 的大作中提到】
: it seems that the xml string have a 0x00 character at the end which needs to
: be got rid of ....
: like this:
: thisString.Trim(Convert.ToChar(0));
:
: test

1 (共1页)
进入DotNet版参与讨论
相关主题
mouse overWindows filesystem bug
一个xml的问题。同事的这个generic工厂interface让我蛋疼
[转载] .Net Question[转载] 申请.NET 版
请教VB.net中如何取得Oracle Error code.NET 入门系列(2)--Web Services,XML,SOAP
Mutually exclusive attributesusing weather XML feed in C# - 1
BUG! Re: xmldocument and webserviceusing weather XML feed in C# - 2
从国内连接 mitbbsdiffGram Re: using weather XML feed
HTTP GET over SSL in C#screebshot: winform based weather app
相关话题的讨论汇总
话题: 0x00话题: invalid话题: value话题: xml