you can probably use something like this to write an xml file:
Public Sub WriteOutputLogFile(ByVal isCompleted As Boolean, ByVal statusMessage As String)
Dim writer As New System.Xml.XmlTextWriter("C:\MySampleXmlFile.xml", System.Text.Encoding.UTF8)
writer.WriteStartDocument(True)
writer.Formatting = System.Xml.Formatting.Indented
writer.Indentation = 2
writer.WriteStartElement("MyOutputog")
writer.WriteStartElement("StatusMessage")
writer.WriteString(isCompleted.ToString())
writer.WriteEndElement()
writer.WriteEndElement()
writer.WriteEndDocument()
writer.Close()
End Sub