public void WriteXml(IGenericRecord record, XmlWriter writer) { writer.WriteStartDocument(); writer.WriteStartElement("Telegram"); writer.WriteAttributeString("xmlns", "xsd", null, "http://www.w3.org/2001/XMLSchema"); writer.WriteAttributeString("xmlns", "xsi", null, "http://www.w3.org/2001/XMLSchema-instance"); writer.WriteStartElement("Request"); writer.WriteAttributeString("requestType", MapRequest(record.GetType())); writer.WriteAttributeString("requestId", RequestId.ToString()); PDKXmlWriter.WriteRecord(record, writer); writer.WriteEndElement(); writer.WriteEndDocument(); }
public void WriteXml(System.Xml.XmlWriter writer) { PDKXmlWriter.WriteRecord(this, writer); }