IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Supplemental basic XML node and document manipulation utilities. Contains some useful static methods for XML manipulation. More...
Static Public Member Functions | |
static XmlNode | RootNode (XmlNode node) |
Returns the root node of the document containtng the specified xml node. More... | |
static int | ChildIndex (XmlNode node) |
Returns the index of the node among siblings with the same name. More... | |
static string | XPath (XmlNode node, XmlNode basenode) |
Returns an XPath expression that uniquely specifies location of an XML node relative to a given ancestor. More... | |
static XmlNodeList | GetNodes (XmlNode basenode, string xpath) |
Returns a list of all _gridCoordinates in the XML sub-tree whose root is basenode that satisfy the specified XPath expression. More... | |
static XmlNode | GetNode (XmlNode basenode, string xpath) |
Returns the first _gridCoordinates in the XML sub-tree whose root is basenode that satisfies the specified XPath expression. More... | |
static XmlElement[] | GetElements (XmlNode basenode, string xpath) |
Returns an array of all elements _gridCoordinates in the XML sub-tree whose root is basenode that satisfies the specified XPath expression. More... | |
static XmlElement | GetElement (XmlNode basenode, string xpath) |
Returns the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression. More... | |
static XmlNode | GetTextNode (XmlNode basenode, string xpath) |
Returns the (first) text node of the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression. More... | |
static string | GetValue (XmlNode basenode, string xpath) |
Returns value of the (first) text node of the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression. More... | |
static bool | CreateContainer (XmlNode basenode, string xpath, string ContainerAttribute, string ContainerValue) |
static bool | CreateTextNode (XmlNode basenode, string xpath, string ContainerAttribute, string ContainerValue, string NodeAttribute, string NodeValue) |
static bool | SetValue (XmlNode basenode, string xpath, string value, bool createnodes, string ContainerAttribute, string ContainerValue, string NodeAttribute, string NodeValue) |
static bool | SetValue (XmlNode basenode, string xpath, string value, bool createnodes) |
static bool | SetValue (XmlNode basenode, string xpath, string value) |
Public Attributes | |
const int | FirstChildIndex = 1 |
Defines the index of the first child node as used in XPath expressions. More... | |
Supplemental basic XML node and document manipulation utilities. Contains some useful static methods for XML manipulation.
|
inlinestatic |
Returns the root node of the document containtng the specified xml node.
node | Node whose containing document is queried for the root node. |
|
inlinestatic |
Returns the index of the node among siblings with the same name.
node | The XML node whose index is returned. |
|
inlinestatic |
Returns an XPath expression that uniquely specifies location of an XML node relative to a given ancestor.
node | The node whose XPath expressino is searched for. |
basenode | The node'result ancestor relative to which the XPath is specified. If null then the absolute path within containing outer-most node (or document) is returned. If not null then basenode must be an ancestor of the node. |
|
inlinestatic |
Returns a list of all _gridCoordinates in the XML sub-tree whose root is basenode that satisfy the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of _gridCoordinates. |
Referenced by IG.Lib.XmlData.GetNodes().
|
inlinestatic |
Returns the first _gridCoordinates in the XML sub-tree whose root is basenode that satisfies the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of the node. |
Referenced by IG.Lib.XmlData.GetNode().
|
inlinestatic |
Returns an array of all elements _gridCoordinates in the XML sub-tree whose root is basenode that satisfies the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of the node. |
Referenced by IG.Lib.XmlData.GetElements().
|
inlinestatic |
Returns the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of the node. |
Referenced by IG.Lib.XmlData.GetElement().
|
inlinestatic |
Returns the (first) text node of the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of the node. |
Referenced by IG.Lib.XmlData.GetTextNode().
|
inlinestatic |
Returns value of the (first) text node of the first ELEMENT node in the XML sub-tree whose root is basenode that satisfies the specified XPath expression.
basenode | Root node of the XML sub-tree in which _gridCoordinates are searched for. |
xpath | The XPath expression used for selection of the node. |
Referenced by IG.Lib.XmlData.GetValue().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
const int IG.Lib.Xml.FirstChildIndex = 1 |
Defines the index of the first child node as used in XPath expressions.