src/XML/DOM/FileEditor.php
public function addNode( $nodePath, $name, $content = "", $attributes = array() )
	{
		$branch	= $this->getNode( $nodePath );
		$node	= new XML_DOM_Node( $name, $content, $attributes );
		$branch->addChild( $node );
		return (bool) $this->write();
	}
public function addNode( $nodePath, $name, $content = "", $attributes = array() )
	{
		$branch	= $this->getNode( $nodePath );
		$node	= new XML_DOM_Node( $name, $content, $attributes );
		$branch->addChild( $node );
		return (bool) $this->write();
	}
public function addNode ( $ nodePath , $ name , $ content = "" , $ attributes = array ( ) ) { $ branch = $ this -> getNode ( $ nodePath ) ; $ node = new XML_DOM_Node ( $ name , $ content , $ attributes ) ; $ branch -> addChild ( $ node ) ; return ( bool ) $ this -> write ( ) ; }
Adds a new Node Attribute to an existing Node.
@access		public
@param		string		$nodePath		Path to existring Node in XML Tree
@param		string		$name			Name of new Node
@param		string		$content		Cotnent of new Node
@param		array		$attributes		Array of Attribute of new Content
@return		bool
Adds a new Node Attribute to an existing Node .