Subscribe to Feed

Posts Tagged ‘XML

You may run into a situation on several occasions where in you have to generate a object file (like .cs file) from a XML file. For example, you may have a XML/SOAP response from a web service that need to be de-serialized and consumed in your application etc..
Luckily because of the tools shipped with Visual [...]

Escaping XML text basically means we are trying to replace the “<”, “>” etc. characters that are used to construct the XML with the encoded values. Here are the 5 values that we care about

XML Value
Encoded Value

<
&lt;

>
&gt;


&quot;


&apos;

&
&amp;

There are several ways in which you can escape an XML file or string in .Net.
 
1. Using Regular [...]