Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
C#
exception isSystem.Xml.XmlException: 'here is one special character like |', hexadecimal value 0x19, is an invalid character at line 1.

I am using this query to delete the all duplicate records based on link tag, link tag is unique.

C#
doc.Root.Elements("item")
               .GroupBy(s => (string)s.Element("Link"))
               .SelectMany(g => g.Skip(1))
               .Remove();


Is there any possible to remove hexadecimalvalus and replace with some other text.
and
Is there any possible to remove entire record also.

Please Help me....

Thank you....
Posted
Updated 3-May-14 0:41am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900