Special Characters within XML

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
We receive a XML through SSO post. I am using System.Xml.XmlDocument.LoadXml method to load this into a XmlDocument. Recently we received some data that contained special character (<). The LoadXml method generates error if I try to
load this data. If I replace this < with &lt;, again I need to convert &lt; to < before inserting the data in the database.
Can someone please advise how do I convert < to &lt; and again back to <.
Data is given below.
<Description><br/>
<Text>BMI PED 5TH % TO < 85TH % AGE</Text><br/>
</Description>
Regards,
Chaitanya

View the full article
 
Back
Top