0

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

1
Contributor
1
Reply
2
Views
4 Years
Discussion Span
Last Post by Mike Askew
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.