473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

XML serialization of illegal character entities

Hello,

My wsdl.exe-generated, ASP.NET 1.1 web service pulls data from the local
Exchange 2003 store using CDO 2000 and returns it to consumers. CDO
occasionally returns (char)1, (char)5, and (char)12 from Exchange.
These are illegal characters in XML 1.0
(http://www.w3.org/TR/2004/REC-xml-20040204/#charsets), yet .NET still
serializes them into character entities, e.g.  . When .NET 1.1
consumers attempt to deserialize this, they receive an XmlException,
e.g. "'', hexadecimal value 0x05, is an invalid character. Line 1,
position 326." referring to the first appearance of an illegal character
entity. I don't believe I have altered the default serialization behavior.

According to an MSDN article, the XmlTextReader used by the ASP.NET Web
Services deserializer has its Normalization property set to false, which
causes the deserializer to throw the exception (See "Deserializing
Invalid XML" here:
http://msdn.microsoft.com/library/de...trblshtxsd.asp)

Is it possible to exchange strings with these characters using ASP.NET
1.1 Web Services? Have I configured something problematically? Is it
possible to change the XML deserializer behavior? Or is it possible to
configure the XML serializer to generate XML that will not cause this
behavior in the deserializer? Are there other relevant considerations
or recommendable techniques that could be helpful?

Thanks for any assistance.

--
Michael McGranahan
College Information Services, UCLA
Jul 11 '06 #1
0 1715

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

76
by: Zenobia | last post by:
How do I display character 151 (long hyphen) in XHTML (utf-8) ? Is there another character that will substitute? The W3C validation parser, http://validator.w3.org, tells me that this character...
19
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It...
50
by: The Bicycling Guitarist | last post by:
A browser conforming to HTML 4.0 is required to recognize &#number; notations. If I use XHTML 1.0 and charset UTF-8 though, does &eacute; have as much support as é ? Sometimes when I run...
4
by: steve | last post by:
I have the following two classes' the second derived from the first. Each time 'myclass' is added it adds an element. The second class is the same in, except it includes more methods. What I want...
14
by: deko | last post by:
Is there a way to check user input for illegal characters? For example, a user enters something into a text box and clicks OK. At that point I'd like to run code such as this: illegal =...
2
by: Mike | last post by:
Hello. I am using C# in .NET v1.1. I am trying to serialize an object to disk and read it back again. The serialization seems to work OK (at least, it completes without error). However, I get...
3
by: bsagert | last post by:
Some web feeds use decimal character entities that seem to confuse Python (or me). For example, the string "doesn't" may be coded as "doesn’t" which should produce a right leaning apostrophe....
7
by: tempest | last post by:
Hi all. This is a rather long posting but I have some questions concerning the usage of character entities in XML documents and PCI security compliance. The company I work for is using a...
2
by: Kamaria | last post by:
I wrote this program to calculate the income tax of a user depending on whether or not they were married: import javax.swing.JOptionPane; public class Income_Tax { public static void main...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.