Method | Description | |
---|---|---|
Commit ( ) : void |
The
|
|
GetChild ( String name ) : OutputNode | ||
GetPrefix ( ) : String | ||
GetPrefix ( bool inherit ) : String | ||
IsCommitted ( ) : bool |
This is used to determine whether the node has been committed. If the node has been committed, then this will return true. When committed the node can no longer produce child nodes.
|
|
IsRoot ( ) : bool |
This method is used to determine if this 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.
|
|
OutputAttribute ( OutputNode source, String name, String value ) : System |
Constructor for the
|
|
Remove ( ) : void |
This is used to remove any uncommitted changes. Removal of an output node can only be done if it has no siblings and has not yet been committed. If the node is committed then this will throw an exception to indicate that it cannot be removed.
|
|
SetAttribute ( String name, String value ) : OutputNode | ||
ToString ( ) : String |
This is used to acquire the name and value of the attribute. Implementing this method ensures that debugging the output node is simplified as it is possible to get the actual value.
|
public GetChild ( String name ) : OutputNode | ||
name | String | /// this is the name of the child element to create /// |
return | OutputNode |
public GetPrefix ( bool inherit ) : String | ||
inherit | bool | /// if there is no explicit prefix then inherit /// |
return | String |
public OutputAttribute ( OutputNode source, String name, String value ) : System | ||
source | OutputNode | |
name | String | /// this is the name that is used for the node /// |
value | String | /// this is the value used for the node /// |
return | System |
public SetAttribute ( String name, String value ) : OutputNode | ||
name | String | /// this is the name of the attribute to be added /// |
value | String | /// this is the value of the node to be added /// |
return | OutputNode |