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

Ignore this completely. I was doing an impersonation of my avatar and not reading documentation properly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.