I'm receiving an xml formatted string that I pull data from by reading
it into an xml document like this:
Dim doc As New Xml.XmlDocument
doc.LoadXml(respstr)
Dim co_name As Xml.XmlNodeList = doc.GetElementsByTagName("co_name")
textbox1.text = co_name(0).innertext
Now I'm getting company names that have ampersands in them. I was not
aware that was not allowed in xml and had no method of dealing with it.
I can fix it like this:
textbox1.text = co_name(0).innertext.replace("&", "&")
But, is there another way?
I ask this question because someone showed me output they got from me
weeks ago and it had & in the company name instead of & How the
heck did it work back then? While the code is pretty much done now.
Back then it wasn't really even a program just a bunch of small groups
of code testing various ideas.