C# 클래스 SimpleFramework.Xml.Stream.NodeBuilder

The NodeBuilder object is used to create either an input node or an output node for a given source or destination. If an InputNode is required for reading an XML document then a reader must be provided to read the content from.

If an OutputNode is required then a destination is required. The provided output node can be used to generate well formed XML to the specified writer.

파일 보기 프로젝트 열기: ngallagher/simplexml 1 사용 예제들

공개 메소드들

메소드 설명
Read ( Stream source ) : InputNode

This is used to create an InputNode that can be used to read XML from the specified stream. The stream will be positioned at the root element in the XML document.

Read ( TextReader source ) : InputNode

This is used to create an InputNode that can be used to read XML from the specified reader. The reader will be positioned at the root element in the XML document.

Write ( TextWriter result ) : OutputNode

This is used to create an OutputNode that can be used to write a well formed XML document. The writer specified will have XML elements, attributes, and text written to it as output nodes are created and populated.

Write ( TextWriter result, Format format ) : OutputNode

This is used to create an OutputNode that can be used to write a well formed XML document. The writer specified will have XML elements, attributes, and text written to it as output nodes are created and populated.

비공개 메소드들

메소드 설명
Read ( EventReader source ) : InputNode

This is used to create an InputNode that can be used to read XML from the specified reader. The reader will be positioned at the root element in the XML document.

메소드 상세

Read() 공개 정적인 메소드

This is used to create an InputNode that can be used to read XML from the specified stream. The stream will be positioned at the root element in the XML document.
public static Read ( Stream source ) : InputNode
source System.IO.Stream /// This contains the contents of the XML source. ///
리턴 InputNode

Read() 공개 정적인 메소드

This is used to create an InputNode that can be used to read XML from the specified reader. The reader will be positioned at the root element in the XML document.
public static Read ( TextReader source ) : InputNode
source System.IO.TextReader /// This contains the contents of the XML source. ///
리턴 InputNode

Write() 공개 정적인 메소드

This is used to create an OutputNode that can be used to write a well formed XML document. The writer specified will have XML elements, attributes, and text written to it as output nodes are created and populated.
public static Write ( TextWriter result ) : OutputNode
result System.IO.TextWriter /// This contains the result of the generated XML. ///
리턴 OutputNode

Write() 공개 정적인 메소드

This is used to create an OutputNode that can be used to write a well formed XML document. The writer specified will have XML elements, attributes, and text written to it as output nodes are created and populated.
public static Write ( TextWriter result, Format format ) : OutputNode
result System.IO.TextWriter /// This contains the result of the generated XML. ///
format Format /// This is the format to use for the document. ///
리턴 OutputNode