Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


illegal character in xml file

From: "Andy Fish" <ajfish@----------.--.-->
To: NULL
Date: 2/6/2007 4:52:00 PM

Hi,

I have an XML file that was created as a DOM tree in .Net 1.1 and serialized 
to disk. If I try to put character code 1 inside one of the attributes 
(don't ask why), it seems to serialize perfectly ok and I get a file that 
looks like this:

<element attribute="&#1;" />

which looks perfectly valid but won't open up with an XML viewer because it 
says it is an illegal character reference.

what am I missing here? surely it's legal to put any character reference in 
an XML file as long as it's correctly encoded? and if it's not, how come the 
framework serialized it for me without complaining?

TIA

Andy




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent