I written a vb.net app that reads the contents of an xml file and sets a textbox with one of the elements. I can read the file fine and seperate it but for the life of me can't figure out how to get the newlines from being displayed as 'squares' I've tried replacing them to no avail. here is what I've tried so far:
none of these work and I'm at my witts end on this one. I think the problem is with the way the xml file is made, with returns on long lines so that it wraps but I'm not sure. If it is the case, it wouldn't solve my problem as the xml files are made by other users. Any ideas welcome
Code:
recDirections &= _step(i).InnerText
recDirections.Replace(vbCr, " ")
recDirections.Replace(vbLf, " ")
recDirections.Replace(vbCrLf, " ")
recDirections.Replace("\n", " ")
recDirections.Replace(vbNewLine, " ")
recDirections.Replace(Chr(10), " ")
recDirections.Replace(Chr(13), " ")
recDirections.Replace(Chr(10) & Chr(13), " ")
Comment