Vote count:
0
I am trying to create an XML document using LINQ.
XElement element = new XElement("ManufacturerName", supplierName);
XDocument doc = new XDocument(element);
doc.Save("Sample.xml");
The supplierName has some special char at the end whose hexadecimal value is 0x1f. This will not allow to save the document.
For this instance its this value for others it may be different. So is there a way to remove any / all special chars?
Thanks in advance.
asked 3 mins ago
Trouble with hexadecimap chars in XML data
Aucun commentaire:
Enregistrer un commentaire