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.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

보호된 프로퍼티들

프로퍼티 타입 설명
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