Hi I have a class Booking that stores booking information, I have to have BOOKING to look like this
Dim swLineItem As New IO.StringWriter()
Dim xmlWriter As New System.Xml.XmlTextWriter(swLineItem)
xmlWriter.WriteStartDocument()
xmlWriter.WriteStartElement("YourOuterMostElement")
xmlWriter.WriteStartElement("Booking")
xmlWriter.WriteAttributeString("partner", "CompanyName")
xmlWriter.WriteAttributeString("transaction", "BOOKING")
xmlWriter.WriteAttributeString("version", "1.0")
xmlWriter.WriteEndElement()
xmlWriter.WriteEndElement()
xmlWriter.WriteEndDocument()