메소드 | 설명 | |
---|---|---|
Commit ( OutputNode parent ) : void |
This method is used to commit all nodes on the stack up to and including the specified node. This will effectively create end tags for any nodes that are currently open up to the specified element. Once committed the output node can no longer be used to create child elements, nor can any of its child elements.
|
|
IsCommitted ( OutputNode node ) : bool |
This is used to determine if the specified node has been committed. If this returns tre then the node is committed and cannot be used to add further child elements.
|
|
IsRoot ( OutputNode node ) : bool |
This method is used to determine if the node is the root node for the XML document. The root node is the first node in the document and has no sibling nodes. This is false if the node has a parent node or a sibling node.
|
|
NodeWriter ( Writer result ) : System.Collections.Generic |
Constructor for the
|
|
NodeWriter ( Writer result, |
Constructor for the
|
|
Remove ( OutputNode node ) : void |
This method is used to remove the output node from the output buffer if that node has not yet been committed. This allows a node that has been created to be deleted, ensuring that it will not affect the resulting XML document structure.
|
|
WriteAttributes ( OutputNode node ) : void |
This is used to write the attributes of the specified node to the output. This will iterate over each node entered on to the node. Once written the node is considered inactive.
|
|
WriteComment ( OutputNode node ) : void |
This is used to write a comment to the document. Comments appear just before the element name, this allows an logical association between the comment and the node to be made.
|
|
WriteElement ( OutputNode parent, String name ) : OutputNode |
This is used to create a new element under the specified node. This will effectively commit all nodes that are open until this node is encountered. Once the specified node is encountered on the stack a new element is created with the specified name.
|
|
WriteEnd ( OutputNode node ) : void |
This is used to write a new end element to the resulting XML document. This will acquire the name and value of the given node, if the node has a value that is written. Finally a new end tag is written to the document and the output is flushed.
|
|
WriteEnd ( OutputNode node, Mode mode ) : void |
This is used to write a new end element to the resulting XML document. This will acquire the name and value of the given node, if the node has a value that is written. Finally a new end tag is written to the document and the output is flushed.
|
|
WriteName ( OutputNode node ) : void |
This is used to write a new start element to the resulting XML document. This will create an output node of the specified name before writing the start tag. Once the tag is written the node is pushed on to the head of the output node stack.
|
|
WriteNamespaces ( OutputNode node ) : void |
This is used to write the namespaces of the specified node to the output. This will iterate over each namespace entered on to the node. Once written the node is considered qualified.
|
|
WriteRoot ( ) : OutputNode |
This is used to acquire the root output node for the document. This will create an empty node that can be used to generate the root document element as a child to the document. Depending on whether or not an encoding has been specified this method will write a prolog to the generated XML document. Each prolog written uses an XML version of "1.0".
|
|
WriteStart ( OutputNode parent, String name ) : OutputNode |
This is used to begin writing on a new XML element. This is typically done by writing any comments required. This will create an output node of the specified name before writing the comment, if any exists. Once the comment has been written the node is pushed on to the head of the output node stack.
|
|
WriteStart ( OutputNode node ) : void |
This is used to write the XML element to the underlying buffer. The element is written in the order of element prefix and name followed by the attributes an finally the namespaces for the element. Once this is finished the element is committed to
|
메소드 | 설명 | |
---|---|---|
NodeWriter ( Writer result, |
Constructor for the
|
public Commit ( OutputNode parent ) : void | ||
parent | OutputNode | /// this is the node that is to be committed /// |
리턴 | void |
public IsCommitted ( OutputNode node ) : bool | ||
node | OutputNode | /// this is the node to check for commit status /// |
리턴 | bool |
public IsRoot ( OutputNode node ) : bool | ||
node | OutputNode | /// this is the node that is check as the root /// |
리턴 | bool |
public NodeWriter ( Writer result ) : System.Collections.Generic | ||
result | Writer | /// this is the output for the resulting document /// |
리턴 | System.Collections.Generic |
public NodeWriter ( Writer result, |
||
result | Writer | /// this is the output for the resulting document /// |
format | /// this is used to format the generated document /// | |
리턴 | System.Collections.Generic |
public Remove ( OutputNode node ) : void | ||
node | OutputNode | /// this is the output node that is to be removed /// |
리턴 | void |
public WriteAttributes ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node to have is attributes written /// |
리턴 | void |
public WriteComment ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node that is to have its name written /// |
리턴 | void |
public WriteElement ( OutputNode parent, String name ) : OutputNode | ||
parent | OutputNode | /// this is the node that is to be committed /// |
name | String | /// this is the name of the start element to create /// |
리턴 | OutputNode |
public WriteEnd ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node that is to have an end tag /// |
리턴 | void |
public WriteEnd ( OutputNode node, Mode mode ) : void | ||
node | OutputNode | /// this is the node that is to have an end tag /// |
mode | Mode | |
리턴 | void |
public WriteName ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node that is to have its name written /// |
리턴 | void |
public WriteNamespaces ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node to have is attributes written /// |
리턴 | void |
public WriteStart ( OutputNode parent, String name ) : OutputNode | ||
parent | OutputNode | /// this is the parent node to the next output node /// |
name | String | /// this is the name of the node that is to be created /// |
리턴 | OutputNode |
public WriteStart ( OutputNode node ) : void | ||
node | OutputNode | /// this is the node that is to be fully written /// |
리턴 | void |