C# Класс HandCoded.Xml.Writer.XmlWriter

The Writer class creates and manages a TextWriter used to output an XML document. The derived classes determine how the actual content is formatted on the stream.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
writer System.IO.TextWriter

Открытые методы

Метод Описание
Write ( XmlDocument document ) : void

Formats and writes the indicated XmlDocument to the output stream using the style implemented by the class instance.

Защищенные методы

Метод Описание
Escape ( string text, bool isAttribute ) : void

Outputs a character string converting any characters used by XML for control purposes to their escaped format.

XmlWriter ( TextWriter writer ) : System

Constructs a Writer that will output XML to the given Stream using UTF-8 character encoding.

XmlWriter ( TextWriter writer, Encoding encoding ) : System

Constructs a Writer that will output XML to the given Stream using the specified character encoding.

Описание методов

Escape() защищенный Метод

Outputs a character string converting any characters used by XML for control purposes to their escaped format.
protected Escape ( string text, bool isAttribute ) : void
text string The text to output.
isAttribute bool true if the text is an attribute value.
Результат void

Write() публичный абстрактный Метод

Formats and writes the indicated XmlDocument to the output stream using the style implemented by the class instance.
public abstract Write ( XmlDocument document ) : void
document System.Xml.XmlDocument The to be formatted.
Результат void

XmlWriter() защищенный Метод

Constructs a Writer that will output XML to the given Stream using UTF-8 character encoding.
protected XmlWriter ( TextWriter writer ) : System
writer System.IO.TextWriter The TextWriter to write to.
Результат System

XmlWriter() защищенный Метод

Constructs a Writer that will output XML to the given Stream using the specified character encoding.
protected XmlWriter ( TextWriter writer, Encoding encoding ) : System
writer System.IO.TextWriter The TextWriter to write to.
encoding System.Text.Encoding The required character encoding.
Результат System

Описание свойств

writer защищенное свойство

The TextWriter used to record the generated XML.
protected TextWriter,System.IO writer
Результат System.IO.TextWriter