Property | Type | Access | Description |
Attribute Property | String | RW | Get/set node attribute value for an element node. |
AttributeCount Property | Integer | RO | Get attribute count for an element node. |
AttributeNode Property | DOMNode | RO | Get the nth attribute for the element node. |
FirstChild Property | DOMNode | RO | Get the first child element of the node. |
LastChild Property | DOMNode | RO | Get the last child element of the node. |
Name Property | String | RO | Get the node name. |
NextSibling Property | DOMNode | RO | Get the next sibling of the node. |
Parent Property | DOMNode | RO | Get the parent node for the node. |
PrevSibling Property | DOMNode | RO | Get the previous sibling of the node. |
Type Property | Integer | RO | Get the node type. |
Value Property | String | RW | Get/set the value of a node (default property). |
Type | Required | Description |
---|---|---|
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
String | Yes | Attribute name. |
Exception | Description |
ERR_TYPEMISMATCH | Returned if used with a node other than an element node. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Exception | Description |
ERR_TYPEMISMATCH | Returned if used with a node other than an element node. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Integer | Yes | Attribute index. |
Exception | Description |
ERR_ARRAYBOUNDS | Returned if the index is out of range. |
ERR_TYPEMISMATCH | Returned if used with a node other than an element node. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Node_Type | Value | Description |
DOM_ELEMENT_NODE | 1 | Element node |
DOM_ATTRIBUTE_NODE | 2 | Attribute node |
DOM_TEXT_NODE | 3 | PCDATA node |
DOM_CDATA_SECTION_NODE | 4 | CDATA section node |
DOM_ENTITY_REFERENCE_NODE | 5 | Entity reference node |
DOM_ENTITY_NODE | 6 | Entity node |
DOM_PROCESSING_INSTRUCTION_NODE | 7 | XML processing instruction node |
DOM_COMMENT_NODE | 8 | Comment node |
DOM_DOCUMENT_NODE | 9 | Document node |
DOM_DOCUMENT_TYPE_NODE | 10 | Document type node |
DOM_DOCUMENT_FRAGMENT_NODE | 11 | Document fragment node |
DOM_NOTATION_NODE | 12 | Notation node |
DOM_XML_DECL_NODE | 13 | XML declaration node |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode that is the subject of the property or method invocation. |
String | Yes (when assigning a value) | String expression used to assign the value to the node. |
Exception | Description |
ERR_TYPEMISMATCH | Returned if the method is unable to create the new element. |
Method | Type | Description |
AppendChild Method | NA - | Append a child node to the node. |
Print Method | String | Print the DOM object to an XML string. |
Type | Required | Description |
DOMNode | Yes | Reference to the DOMNode object that is the subject of the property or method invocation. |
DOMNode | Yes | Reference to the child DOMNode to append. |
Exception | Description |
ERR_TYPEMISMATCH | Returned if the argument is not a DOMNode. |
Type | Required | Description |
---|---|---|
DOMNode | Yes | Reference to the DOMNode object that is the subject of the property or method invocation. |
Integer | No | Character set to use for encoding the printed document (one of the ENC_xxx constants). If not supplied, the default is UTF-8. |
Boolean | No | Flag indicates whether or not to include an xmldecl line. The default is false. Do not include an xmldecl line. |
Boolean | No | Flag indicating whether or not to use pretty-printing. If set to true, an attempt is made to insert indentation and newlines to make the result easier to read. The default is false. |
Exception | Description |
ERR_DOMERROR | Returned if the method is unable to print the document. |
Operator | Type | Description |
New | DOMNode | Create a new object. |