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

The CompactWriter. class produces a XML document that contains the least amount of unnecessary whitespace as possible to keep the overall document size small.
Наследование: XmlWriter
Показать файл Открыть проект

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

Метод Описание
CompactWriter ( Stream stream, Encoding encoding ) : System

Constructs a CompactWriter.

CompactWriter ( TextWriter writer ) : System

Constructs a CompactWriter.

ToString ( XmlDocument document ) : string

Converts a XmlDocument to a compact string representation.

Write ( XmlDocument document ) : void

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

Приватные методы

Метод Описание
WriteNode ( XmlNode node ) : void

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

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

CompactWriter() публичный Метод

Constructs a CompactWriter.
public CompactWriter ( Stream stream, Encoding encoding ) : System
stream Stream The to write to.
encoding System.Text.Encoding The character encoding to use.
Результат System

CompactWriter() публичный Метод

Constructs a CompactWriter.
public CompactWriter ( TextWriter writer ) : System
writer System.IO.TextWriter The to write to.
Результат System

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

Converts a XmlDocument to a compact string representation.
public static ToString ( XmlDocument document ) : string
document System.Xml.XmlDocument The to be converted.
Результат string

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

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