I am attempting to figure out why some text apparently doesn’t have any carriage returns in it, even though it looks like it does. I am wondering if calling innerText when Xpath’ing through a XmlDocument (in .net 4.0) strips carriage returns or other characters. Probably not, But at this point I looking for anything.
Share
You haven’t shown any code, so it’s hard to know where the data came from. By default, insignificant whitespace is not preserved when loading an
XmlDocument. You might want to try settingXmlDocument.PreserveWhitespaceto true before loading.If that doesn’t help, please post a short but complete program which demonstrates the problem.