I would like to export(convert) XmlTextWriter output data to string variable.
My code as follows :
'' write data as xml
Dim objX As New XmlTextWriter(Response.OutputStream, Encoding.UTF8)
objX.WriteStartDocument()
objX.WriteStartElement("Transaction")
objX.WriteAttributeString("version", "1.0")
objX.WriteElementString("id", "12")
objX.WriteElementString("token", "4534gfdgdfhfst")
objX.WriteEndElement()
objX.WriteEndDocument()
objX.Flush()
objX.Close()
Response.End()
the xml output am getting now is like this : 38824e4760a1b72f9bd95723a3bdffbd02280010.50en3475990rapids1 month rapidshare0.46587748175.136.184.1539/14/2012d7a1ff2200f9fe7b8b89d12fdc8be8f36293712eS. how to make it as xml tags