Advertisement

07.15.2008 at 06:00AM PDT, ID: 23565851
[x]
Attachment Details

Decoding encodied Special Characters in XML (.Net / C#)

Asked by trumaj66 in Microsoft Visual C#.Net

Tags: c#

I am relatively new to using XML, so please bear with me.

I have an application which retrieves an XML file from a website. The XML file is the deserialised using a class created using XSD.

All works fine except for the conversion of encoded special characters (e.g. "&"), which are not being decoded when the XML is deserialised.

For example, the XML contains "This & That", and when it is deserialised, the text remains the same, and is not decoded to "This & That" as I'd expect.

I've dug around on Google, but I'm not sure where to go next.

Do I require some XmlAttribute somewhere to force the deserialiser to perform the conversion?  Or is it something I will have to attend to "manually"?

Any advise gratefully received.Start Free Trial
[+][-]07.15.2008 at 07:23AM PDT, ID: 22007291

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Tags: c#
Sign Up Now!
Solution Provided By: philipjonathan
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628