M
Mark
I'm sending an xml stream through an http connection to my webserver.
Since some of the xml data will have the same characters as the 'xml
characters'(i.e <,>, etc...), I need the xml to be encoded for the
server. For example, is it a standard practice to encode the >
characer as > in the xml ?
Will this do it ?
Dim oEncoder As New System.Text.ASCIIEncoding
requestData = oEncoder.GetBytes(xmlString)
if this is not the correct way to do it, could someone please show me
the correct way ?
Sorry to add another topic, but also this xml data will contain byte
data from a scanned image in one of the fields, so there is a
possibility it will have chr(0) in the data also. If I need to
prepend data to the xml string (so I need to make a copy of it) can I
just assign it to another string or will it get truncated at the
chr(0) like it would in C.
Thanks,
mark
Since some of the xml data will have the same characters as the 'xml
characters'(i.e <,>, etc...), I need the xml to be encoded for the
server. For example, is it a standard practice to encode the >
characer as > in the xml ?
Will this do it ?
Dim oEncoder As New System.Text.ASCIIEncoding
requestData = oEncoder.GetBytes(xmlString)
if this is not the correct way to do it, could someone please show me
the correct way ?
Sorry to add another topic, but also this xml data will contain byte
data from a scanned image in one of the fields, so there is a
possibility it will have chr(0) in the data also. If I need to
prepend data to the xml string (so I need to make a copy of it) can I
just assign it to another string or will it get truncated at the
chr(0) like it would in C.
Thanks,
mark