We are in the process of testing a program that creates MQ txns using VB2010.
Notice the teeny little 22 in the top left corner? What is that? Does it have something to do with how we are using the Encoding.UTF8 method? The receiver of this txn able to read and process it, so it doesn't cause any harm, but I would love to know what it is (and if I should not have it in there).
Thank you for helping me!
²²<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ArriveDate>10/01/2013 10:57:12 AM</ArriveDate>
Here is the initial definition:
xmlDoc = New XmlDocument
Dim xmlDec As XmlDeclaration = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", "yes")
And here is how we write it out after filling the data:
xml = Encoding.UTF8.GetString(xmlMem.GetBuffer, 1, Convert.ToInt32(xmlWriter.BaseStream.Position - 1))