I'm using the code below to send data up from a PDA to a website. There are options that a client can choose
like " > .05 % " or " < .05% ". These optiones wind up in comments that have to go up as text.
The problem is that the less than or greater than signs when read into the xml brake the tags in the xml reader later on. Using a replace command would work except it replaces the xml tags and it dosent seem to be the best option.
Any Ideas?
Thansk
like " > .05 % " or " < .05% ". These optiones wind up in comments that have to go up as text.
The problem is that the less than or greater than signs when read into the xml brake the tags in the xml reader later on. Using a replace command would work except it replaces the xml tags and it dosent seem to be the best option.
Any Ideas?
Thansk
Code:
Dim Sw1 As New StringWriter
Dim xmlWriter1 As New XmlTextWriter(Sw1)
' fill my Data reader
xmlWriter1.WriteStartElement("resulstin")
Do While Dreader.Read()
xmlWriter1.WriteStartElement("res")
xmlWriter1.WriteElementString("resultid", Dreader.GetInt32(0))
DBResultID = Dreader("resultid")
xmlWriter1.WriteElementString("scheduleentryid", Dreader.GetInt32(1))
loop
xmlWriter1.WriteEndElement()
mystring = Sw1.ToString
myresult = GetWebPageResult(mystring)