public void WriteXml(XmlWriter writer) { writer.WriteStartDocument(); this.Root.WriteXml(writer); writer.WriteEndDocument(); }