english/libraries/joomla/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 mergeNode(SimpleXMLElement $source, SimpleXMLElement $new)
	{
		foreach ($new->attributes() as $name => $value)
		{
			if (isset($source[$name])) {
				$source[$name] = (string) $value;
			}
			else {
				$source->addAttribute($name, $value);
			}
		}
			}
protected static function mergeNode ( SimpleXMLElement $ source , SimpleXMLElement $ new ) { foreach ( $ new -> attributes ( ) as $ name => $ value ) { if ( isset ( $ source [ $ name ] ) ) { $ source [ $ name ] = ( string ) $ value ; } else { $ source -> addAttribute ( $ name , $ value ) ; } } }
Adds a new child SimpleXMLElement node to the source.
Adds a new child SimpleXMLElement node to the source .
// Update the attributes of the child node. // What to do with child elements?
