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
|
|