Home » Documentation » DOMTemplate

DOMTemplate

Represents an XML/XHTML document with members to modify the document.

Constructors

Name Description
Constructor  Initializes a new instance of the DOMTemplate class.

Methods

Name Description
AppendChild  Appends the specified node to the end of the child node tree of the specified parent node.
Arguments:
(ThisNode)
(ParentNode, ThisNode)
ExecuteQuery  Executes an XPath query on the document in this instance.
Arguments:
(void)
(NewXPathQuery)
GetAttribute  Returns the value of the specified attribute.
Arguments:
(Attribute)
(Node, Attribute)
GetDOMChunk  Returns a DOMChunk from the node selected.
GetInnerHTML  Returns a string representation of the selected node's children.
Arguments:
(void)
(Node)
GetInnerSubString  Returns a sub string from the inner HTML of a node with the specified start and end container strings.
Arguments:
(Start, End)
GetInnerText  Returns a string of the inner text of the selected or specified node.
Arguments:
(void)
(Node)
GetNode  Returns a selected node from document in this instance.
GetNodeByID  Selects nodes from the document with an attribute of 'id' and the value of the specified argument.
Arguments:
(Value)
GetNodes  Returns an array of selected nodes from this instance.
GetNodesAsString  Returns a string representation of the nodes selected.
GetNodesByAttribute  Selects nodes from the document by attribute with the specified arguments.
Arguments:
(Attribute)
(Attribute, Value)
GetNodesByAttributes  Selects nodes from the document using the hashtable of attribute name/value pairs specified.
Arguments:
(Attributes)
GetNodesByDataSet  Selects nodes from the document by data set attribute using the specified post fix argument and optional attribute value argument.
Arguments:
(Attribute)
(Attribute, Value)
GetNodesByTagName  Selects nodes from the document by tagname with the specified argument.
Arguments:
(TagName)
GetOuterHTML  Returns a string representation of the selected or specified node's children including the parent node.
Arguments:
(void)
(Node)
InsertAfter  Places the specified node after the specified parent node.
Arguments:
(ThisNode)
(ParentNode, ThisNode)
InsertBefore  Places the specified node before the specified parent node.
Arguments:
(ThisNode)
(RefNode, ThisNode)
Load  Loads the content from the specified string into the current document and optionally uses the specified RootPath argument for execution of XSLT.
Arguments:
(Source)
(Source, RootPath)
LoadFile  Loads the content of the specified file path into DOMDocument. Also assists with XSLT parsing for XML based documents.
Arguments:
(Path)
(Path, RootPath)
PrependChild  Prepends the the specified node to the beginning of the child node tree of the specified parent node or selected parent node.
Arguments:
(ThisNode)
(ParentNode, ThisNode)
Remove  Removes the specified node(s) or selected node(s) from a document.
Arguments:
(void)
(Node)
(Nodes)
RemoveAllAttributes  Removes all attributes from the specified node(s) or selected node(s).
Arguments:
(void)
(Node)
(Nodes)
RemoveAttribute  Removes specified attribute from specified nodes.
Arguments:
(Attribute)
(Node, Attribute)
(Nodes, Attribute)
RemoveInnerSubString  Removes a sub string from the inner HTML of a node with the specified start and end container strings and optionally removes start and end keys.
Arguments:
(Start, End)
(Start, End, RemoveKeys)
RenameNode  Renames a nodes tag name.
Arguments:
(NodeType)
(ThisNode, NodeType)
RenameNodes  Renames an array of selected or specified nodes.
Arguments:
(NodeType)
(ThisNode, NodeType)
(Nodes, NodeType)
ReplaceInnerString  Replaces a string from with in the contents of the inner HTML of a selected node.
Arguments:
(This, WithThat)
ReplaceNode  Replaces a specified or selected node with another specified node.
Arguments:
(ThisNode, WithThisNode)
(WithThisNode)
SaveAs  Writes the string representation of the current document to a file.
Arguments:
(FilePath)
SetAttribute  Set attribute value on specified nodes.
Arguments:
(Attribute, Value)
(Node, Attribute, Value)
(Nodes, Attribute, Value)
SetInnerHTML  Sets the inner HTML of specified nodes.
Arguments:
(Value)
(Node, Value)
(Nodes, Value)
SetInnerText  Sets the inner text of a specified or selected node(s).
Arguments:
(Value)
(Node, Value)
(Nodes, Value)
ToString  Returns a string containing the structure of the current document, specified node or specified node collection.
Arguments:
(void)
(ThisNodeList)
(ThisNode)
Traverse  Select nodes from a document using a XPath query in the specified argument.
Arguments:
(Value)

Properties

Name Description
BasePath  Stores a string containing the query base path.
DOMDocument  Stores the document object that is specific to the environment.
DOMXPath  Stores the xpath object that is specific to the environment.
DTD  Stores a string that represents the DTD of the document.
ResultNodes  Stores a collection of nodes returned from an XPath query.
XPathQuery  Stores a string that represents an XPath query.
Are you a robot?
Your Email:
Create a Username:
Create a Password:
Forgot Password?
Validate Text: Captcha