Einhugur Xml Plugin for Xojo |

# EinhugurXml.Node Class (console safe)

Class to represent a single Node in the Xml document.

Object
Node

class EinhugurXml.Node

#### Constructors

Node | Private constructor.

#### Properties

Empty | Returns true if the Attribute is empty.
Name | Sets or gets the name of the node.
TextValue | This property is like a smart macro to do the complicated thing of getting Text value from a child Text node, and it will get the text without drilling down onto the Text node.
Type | Returns type of the node.
Value | Sets or gets value for Nodes that can have values.

#### Methods

AppendAttribute | Appends new attribute to the node.
AppendChild | Appends a child with a given name to the node, returning the newly created node.
AppendChild | Appends a child node of given type to the node, returning the newly created node.
AppendCopy | Copies the specified attribute to become a attribute of this node by appending it.
AppendCopy | Copies the specified node to become a child of this node by appending it.
AppendMove | Moves the specified node to become a child of this node by appending it.
Attribute | Returns attribute by name or empty attribute if not found, unless if the create parameter is true then if not found a newly appended attribute will be returned.
Child | Returns first child by a given name, or empty node if not found, unless if the create parameter is true then if not found a newly appended node will be returned.
ChildValue | Returns the value of the first child with type NODE_PCDATA or NODE_CDATA.
ChildValue | Wrapper shortcut for Child(name).ChildValue()
Children | Returns iterator for all child nodes of the node.
Children | Returns iterator for all children of the node with a given name.
FindChildByAttribute | Finds child node by Attribute value without evaluating node names.
FindChildByAttribute | Finds child node by Attribute value within set of nodes with specific name.
FirstAttribute | Returns first attribute on the node.
FirstChild | Returns first child node.
FirstElementByPath | Finds first node in the tree by given path, returning the found element or empty node.
InsertAttributeAfter | Inserts attribute after other attribute.
InsertAttributeBefore | Inserts attribute before other attribute.
InsertChildAfter | Inserts child with given name after a specific child node.
InsertChildAfter | Inserts child of specific type after a specific child node.
InsertChildBefore | Inserts child with given name before a specific child node.
InsertChildBefore | Inserts child of specific type before a specific child node.
InsertCopyAfter | Copies the specified attribute to become a attribute of this node by inserting the node after a specific attribute.
InsertCopyAfter | Copies the specified node to become a child of this node by inserting the node after a specific node.
InsertCopyBefore | Copies the specified attribute to become a attribute of this node by inserting the node before a specific attribute.
InsertCopyBefore | Copies the specified node to become a child of this node by inserting the node before a specific node.
InsertMoveAfter | Moves the specified node to become a child of this node by inserting the node after a specific node.
InsertMoveBefore | Moves the specified node to become a child of this node by inserting the node before a specific node.
LastAttribute | Returns last attribute on the node.
LastChild | Returns last child node.
NextSibling | Returns next sibling node.
NodeAttributes | Returns iterator for attributes on the node.
Operator_Compare | Compares if nodes are the same node under the hood.
Parent | Returns the parent node or empty node if there was no parent.
PrependAttribute | Prepends new attribute to the node.
PrependChild | Prepends a child with a given name to the node, returning the newly created node.
PrependChild | Prepends a child node of given type to the node, returning the newly created node.
PrependCopy | Copies the specified attribute to become a attribute of this node by prepending it.
PrependCopy | Copies the specified node to become a child of this node by prepending it.
PrependMove | Moves the specified node to become a child of this node by prepending it.
PreviousSibling | Returns previous sibling node.
RemoveAllAttributes | Removes all attributes from the node, returning true if successful.
RemoveAllChildren | Removes all child nodes from the node, returning true if successful.
RemoveAttribute | Removes attribute.
RemoveAttribute | Removes attribute by name, returning true if attribute was removed, else false.
RemoveChild | Removes child node by name, returning true if successful.
RemoveChild | Removes child node, returning true if successful.
Root | Returns the root node.
SelectNode | The SelectNode function compiles the XPath expression and then executes it with the node as a context node, and returns the result as a single XPathNode, the node that makes the first hit. The function can optionally take in XPath variables.
SelectNodes | The SelectNodes function compiles the XPath expression and then executes it with the node as a context node, and returns the resulting node set. The function can optionally take in XPath variables.
Text | Returns TextHelper class to read or write a Text node, optionally creating new text node if it does not exist.
ToString | Converts the Node and all nodes under it to xml string.
ToString | Converts the Node and all nodes under it to xml string. This variation of the function takes in custom format flags. See constants on the EinhugurXml module.

#### Supported Platforms:

- macOS Intel 64 bit
- macOS Apple Silicon
- Windows 32 bit
- Windows 64 bit
- Windows ARM 64 bit
- Linux 32 bit
- Linux 64 bit
- Linux ARM 32 bit
- Linux ARM 64 bit
- iOS