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.
ファイルを表示 Open project: formicary/fpml-toolkit-csharp

Protected Properties

Property Type Description
writer System.IO.TextWriter

Public Methods

Method Description
Write ( XmlDocument document ) : void

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

Protected Methods

Method 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 method

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.
return void

Write() public abstract method

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.
return void

XmlWriter() protected method

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.
return System

XmlWriter() protected method

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.
return System

Property Details

writer protected_oe property

The TextWriter used to record the generated XML.
protected TextWriter,System.IO writer
return System.IO.TextWriter