Afternoon all,
I currently am loading an XSD file from a physical file into memory to validate an XML file. However on loading the file it is containing such escape characters as \r\n
to keep the formatting the document was originally in.
This then causes an exception when loading the XSD into memory.
What would be the best way to remove these escape characters?
A simple string.Replace()
? or is there a more efficient method.
In total these characters are used:
- \r
- \n
- \t