Class DOMIT_Element
A class representing the DOM Element.

isPublic? yes
isAbstract? no

Inheritance tree:

DOMIT_Node
|
DOMIT_Element

Known subclasses:

None

Source file: xml_domit_parser.php




Constructor
Initializes DOMIT_Element variables and those of the superclass.

Signature: DOMIT_Element()

isPublic? no




Public Constants



Private Constants



Public Fields



Private Fields



Public Methods
appendChild
Adds the specified node as a child of the current DOMIT_Element.

Signature: appendChild(&$child)

Parameters:

DOMIT_Element child - The node that is to be appended.

Returns:

DOMIT_Element - The appended DOMIT_Elementnode.

Example:

A child node is appended to the $myElement node:

$myElement->appendChild($elementNode);

toString
Generates an unformatted (single line, no whitespace) string representation of the element and all children.

Signature: toString()

Returns:

String - An unformatted (single line, no whitespace) string representation of the element and all children.

Example:

An unformatted string representation of the element will be printed here:

echo (htmlentities($myElement->toString());




Private Methods
createClone
Used by cloneNode() to generate a new instance of a DOMIT_Element containing the same data as the original.

Signature: &createClone()

Returns:

DOMIT_Element - A new DOMIT_Element


Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.