Public Method Details |
appendChild |
|
public object Node appendChild( object Node $NewChild )
|
| |
appendChild adds a new node to the current node.
appendChild adds a new node to the current node. If the current node is not yetattached to the document, a independent node will be created and the new node willbe attached to the independent node. This will be a document independent tree!It is possible to clone the independent tree to the document by appending the rootelement to a node of the document.
|
| Parameter |
|
|
| Returns |
object Node |
| See Also |
_internal_selfCheck(), _internal_cloneNode() |
|
cloneNode |
|
public object Node cloneNode( boolean $deep )
|
| |
cloneNode clones the current node!
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent ( getParentNode() returns null.).
|
| Parameter |
|
| boolean |
$deep |
|
|
Specifies whether to perform a deep clone or not. |
|
| Returns |
object Node The cloned object! |
|
removeChild |
|
public boolean removeChild( object Node $ChildToRemove )
|
| |
removeChild deletes a child node of the current node
since the domxml functions donīt provide a method to remove a node, thisis currently not supported!
|
| Parameter |
|
| object Node |
$ChildToRemove |
|
|
The node to be deleted |
|
| Returns |
boolean true if the deletion was successful, false otherwise |
| Deprecated |
Currently deprecated because of the missing of an appropriate domxml_... function. |
|
getOwnerDocument |
|
public object Document getOwnerDocument( )
|
| |
getOwnerDocument retrieves the document object associated with this node
since the domxml functions donīt provide a method to retrieve the associated document, thisis currently not supported!
|
| Returns |
object Document The Document object |
| Magic |
Currently not available because of the missing of an appropriate domxml_... function. |
|
getFirstChild |
|
public object Node getFirstChild( )
|
| |
getFirstChild
returns a object linked to the first element of the current node.If there is no child node, it will return false.
|
| Returns |
object Node $FirstChild |
|
getNextChild |
|
public object Node getNextChild( )
|
| |
getNextChild
returns a object linked to the first element of the current node.If there is no child node, it will return false.
|
| Returns |
object Node $NextChild |
|
getLastChild |
|
public object Element getLastChild( )
|
| |
getLastChild
returns a object linked to the last element of the current node.If there is no child node, it will return false.
|
| Returns |
object Element $LastChild |
|
getNodeById |
|
public object Node getNodeById( string $IdToSearch )
|
| |
getNodeById
parses the children of the current node for a node with a given "id" attribute.If such a node can be found, the object will be returned, false otherwise.
|
| Parameter |
|
|
| Returns |
object Node $NodeOfId |
|
hasChildNodes |
|
public boolean hasChildNodes( )
|
| |
Checks for subsequent elements
|
| Returns |
boolean Returns true, if the current element has child nodes, false otherwise |
| See Also |
getFirstChild(), getNextChild(), hasMoreElements() |
|
getParentNode |
|
public object Node getParentNode( )
|
| |
getParentNode returns the parent node of the current node, false if no parent is present!
Note: This function may cause an error! If you call this function from the root element,the parser crashes.
|
| Returns |
object Node The parent node. |
|
getParent |
|
public object Node getParent( )
|
| |
getParent returns the parent node of the current node, false if no parent is present!
Note: This function may cause an error! If you call this function from the root element,the parser crashes.
|
| Returns |
object Node The parent node. |
| Deprecated |
Use getParentNode() instead |
|
getChildNodes |
|
public object NodeList getChildNodes( )
|
| |
getChildNodes returns a list of all child nodes of the current node
Note: This function may cause an error! If you call this function from the root element,the parser crashes.
|
| Returns |
object NodeList An object containing all child elements |
|
setNodeValue |
|
public boolean setNodeValue( string $value )
|
| |
setNodeValue sets the content of the current node.
setNodeValue stores the given parameter as the content of the current node.
|
| Parameter |
|
| string |
$value |
|
|
value of the node |
|
| Returns |
boolean Returns true if the value has been successfully set, false otherwise. |
| See Also |
$nodevalue |
|
getNodeValue |
|
public string getNodeValue( )
|
| |
getNodeValue returns the Value of the node, if present
|
| Returns |
string The value of the node |
|
getAttributes |
|
public object NamedNodeMap getAttributes( )
|
| |
getAttributes returns an array with the attributes set
|
| Returns |
object NamedNodeMap $attributes |
|
toString |
|
public string toString( )
|
| |
toString
creates and retrieves the text representation of the current node
|
| Returns |
string $retstr The string, which represents the current node |
|
getNodeName |
|
public string getNodeName( )
|
| |
getNodeName The name of the node
retrieves the name of the current node. Text-Nodes have no name, therefore thefunction returns an empty string.
|
| Returns |
string $name |
|
getNodeType |
|
public int getNodeType( )
|
| |
getNodeType
returns the type of the nodeThe type of the node can be either-> 1 - XML_ELEMENT_NODE-> 2 - XML_ATTRIBUTE_NODE-> 3 - XML_TEXT_NODE-> 4 - XML_CDATA-> 5 - XML_ENTITY_REF_NODE-> 6 - XML_ENTITY_NODE-> 7 - XML_PI_NODE-> 8 - XML_COMMENT_NODE-> 9 - XML_DOCUMENT_NODE-> 10 - XML_DOCUMENT_TYPE_NODE-> 11 - XML_DOCUMENT_FRAG_NODE-> 12 - XML_NOTATION_NODE
|
| Returns |
int $type The type of the underlying object! |
|
addElement |
|
public object Node addElement( object Node $elem )
|
| |
adds a new element to the end of the elementlist
This function does not return a reference to the inserted Object.If you intend to insert only one element, its reference will be returnd.When inserting an array, the function always returns true!
|
| Parameter |
|
| object Node |
$elem |
|
|
Element, to be added to the current node. This may
be an array too. |
|
| Returns |
object Node The newly inserted node, now linked to the document, is returned. |
| Deprecated |
Please use appendChild instead! |
| See Also |
appendChild() |
|