public WriteRaw ( Char buffer, int index, int count ) : void | ||
buffer | Char | |
index | int | |
count | int | |
return | void |
XmlTextWriter writer = new XmlTextWriter(Console.Out); writer.Formatting = Formatting.Indented; writer.WriteStartDocument(); writer.WriteStartElement("root"); writer.WriteRaw("hello world "); writer.WriteEndElement(); writer.WriteEndDocument(); writer.Flush();
string xml = ""; XmlTextWriter writer = new XmlTextWriter(Console.Out); writer.Formatting = Formatting.Indented; writer.WriteStartDocument(); writer.WriteComment(xml); writer.WriteEndElement(); writer.WriteEndDocument(); writer.Flush();This example writes an XML document with a comment in the output using the WriteComment method from XmlTextWriter. Both examples are using the System.Xml.XmlTextWriter class from the .NET Framework.
public WriteRaw ( Char buffer, int index, int count ) : void | ||
buffer | Char | |
index | int | |
count | int | |
return | void |