public/wordpress/wp-content/plugins/wp-pipes/includes/form/form.php
/**
	 * Adds a new child SimpleXMLElement node to the source.
	 *
	 * @param   SimpleXMLElement  $source  The source element on which to append.
	 * @param   SimpleXMLElement  $new     The new element to append.
	 *
	 * @return  void
	 *
	 * @since   11.1
	 */
Adds a new child SimpleXMLElement node to the source.
@param   SimpleXMLElement  $source  The source element on which to append.
@param   SimpleXMLElement  $new     The new element to append.

@return  void


Adds a new child SimpleXMLElement node to the source . @param SimpleXMLElement $source The source element on which to append . @param SimpleXMLElement $new The new element to append . @return void
protected static function addNode(SimpleXMLElement $source, SimpleXMLElement $new)
	{
		$node = $source->addChild($new->getName(), trim($new));
		foreach ($new->attributes() as $name => $value)
		{
			$node->addAttribute($name, $value);
		}
		foreach ($new->children() as $child)
		{
			self::addNode($node, $child);
		}
	}
protected static function addNode ( SimpleXMLElement $ source , SimpleXMLElement $ new ) { $ node = $ source -> addChild ( $ new -> getName ( ) , trim ( $ new ) ) ; foreach ( $ new -> attributes ( ) as $ name => $ value ) { $ node -> addAttribute ( $ name , $ value ) ; } foreach ( $ new -> children ( ) as $ child ) { self :: addNode ( $ node , $ child ) ; } }
Adds a new child SimpleXMLElement node to the source.
Adds a new child SimpleXMLElement node to the source .
// Add the new child node. // Add the attributes of the child node. // Add any children of the new node.