C# Class 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.
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Protected Properties

Свойство Type Description
writer System.IO.TextWriter

Méthodes publiques

Méthode Description
Write ( XmlDocument document ) : void

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

Méthodes protégées

Méthode Description
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.

Method Details

Escape() protected méthode

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.
Résultat void

Write() public abstract méthode

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.
Résultat void

XmlWriter() protected méthode

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.
Résultat System

XmlWriter() protected méthode

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.
Résultat System

Property Details

writer protected_oe property

The TextWriter used to record the generated XML.
protected TextWriter,System.IO writer
Résultat System.IO.TextWriter