Class SimpleXMLElementExt
This class extends the SimpleXMLElement class in PHP and adds a few extra methods to aid in the XML DOM manipulation.
Located in /class.simplexmlelementext.php (line 25)
SimpleXMLElement | --SimpleXMLElementExt
Adds an attribute to the current node in the specified namespace.
- string $sNS: The namespace that the new attribute belongs in
- string $sAttribute: The attribute to add to the node
- string $sValue: The value of the attribute to add to the node
Adds a child SimpleXMLElement node as a child of this node. This differs from the native addChild() method in that it allows adding an XML node, not creating a tag.
- SimpleXMLElement $oChild: The node to add as a child of this node
Clones this node recursively and returns the cloned node.
Returns the parent node of the current SimpleXML node
Determines if this SimpleXML node has children nodes
Inserts the specified new node after the specified existing node. These nodes must be children of the current SimpleXML element.
- SimpleXMLElement $oNewNode: The new node to add to this nodes DOM
- SimpleXMLElement $oRefNode: An existing child node in this nodes DOM that becomes the previous sibling of the new node.
Inserts the specified new node before the specified existing node. These nodes must be children of the current SimpleXML element.
- SimpleXMLElement $oNewNode: The new node to add to this nodes DOM
- SimpleXMLElement $oRefNode: An existing child node in this nodes DOM that becomes the next sibling of the new node.
Remove an attribute from the current node. Note that if the attribute exists in a non- default namespace, removeAttributeNS() should be used.
- string $sAttribute: The attribute to remove
Remove an attribute in a particular namespace
- string $sNS: The namespace the attribute exists in
- string $sAttribute: The name of the attribute to remove
Removes the specified child from the XML DOM
- SimpleXMLElement $oChild: The child node to remove from the parent DOM
Inherited Methods
Inherited From SimpleXMLElement (Internal Class)
constructor __construct ( )
addAttribute ( )
addChild ( )
asXML ( )
attributes ( )
children ( )
count ( )
getDocNamespaces ( )
getName ( )
getNamespaces ( )
registerXPathNamespace ( )
saveXML ( )
xpath ( )
__toString ( )
Documentation generated on Thu, 25 Feb 2010 15:59:41 -0500 by phpDocumentor 1.4.3

