XmlNode
From Pointui
Provides the ability to read and update an xml node within an xml document. It may be the root node of a document or a child node.
Methods
void FindNode(String nodeName, XmlNode result)
Starts looking through all child nodes for a node whose name matches nodeName. The first node found is returned in the result parameter.
void GetChildValue(String childNodeName, String result)
void GetChildValue(String childNodeName, int result)
void GetChildValue(String childNodeName, DateTime result)
void GetChildValue(int index, String result)
void GetChildValue(int index, int result)
void GetChildValue(int index, DateTime result)
Returns in the result parameter a child node value, automatically converting the string value in the xml to the data type of the supplied result parameter. The child node can be located by the string name of it, or the zero based integer index of the child node.
void SetChildValue(String childNodeName, String value)
void SetChildValue(String childNodeName, int value)
void SetChildValue(String childNodeName, DateTime value)
Sets the value of a child node, automatically creating it if it didn’t already exist.
void GetAttributeValue(String attributeName, String result)
void GetAttributeValue(String attributeName, int result)
void GetAttributeValue(String attributeName, DateTime result)
Returns in the result parameter an attribute value, automatically converting the string value in the xml to the data type of the supplied result parameter.
int GetChildCount()
Returns the number of child nodes for this node.
int GetIndex()
Returns the index of this node within the collection of sibling nodes (other nodes that are children of this node’s parent).
XmlNode GetParent()
Returns the parent node of this node.
void GetChild(int index, XmlNode result)
Gets a child node of this node at the specified zero based index and returns the child node in the result parameter.
void AddChild(String childNodeName, XmlNode result)
Creates a child with the supplied childNodeName even if a node by the same name already exists. A reference to the node is returned in the result parameter.
void LoadFromFile(String filename)
Loads an xml document from the file system.
void LoadFromString(String xml)
Loads an xml document from the xml within the supplied String.
void SaveToFile(String filename)
Saves the node and all child nodes to the specified filename.
void GetDataTable(DataTable result)
Gets a DataTable view of this node. Each row in the data table will correspond to each child of this node.
