Sunday, December 05, 2004

Line breaks in the Xml file while reading the path

my fellow developer found this interesting feature. If you have an Xml file that contains the path to the harddrive. Something like this:


C:\temp\myfile.pdf


This will retrieve the path fine but look the following Xml file:


C:\temp\myfile
.pdf



If you retrieve the path from this xml file you will get something like this in the string.
string filePath = "\r\n"

Which is the code for the return character and the new line character. You should not leave any spaces when specifying the path in the xml file.

1 comment:

azamsharp said...

Hmm, Seems like it did not display my Xml File. I hope the reader will understand what I am trying to convey here.