replacing < character in XML

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have an XML where in one tag value alone it contains < character, because of which i am getting "The < character, hexadecimal value 0x3C, cannot be included in a name. Line 11, position 24."
I tried replacing the XML by using,
XmlDocumentFragment docFrag_modinfo = xmlDoc.CreateDocumentFragment();
docfrag.InnerXml=modifyTag.Replace("&","&amp;");
its replacing all the characters like &,>,, but not <.
I am searching last 3-4 days for the solution but i didnt get it. So please help me out.
Thanks in advance!!...



<
santhosh kumar kulandaivel<br/>

View the full article
 
Back
Top