controller/jobs/src/Controller/Jobs/Customer/Import/Xml/Standard.php
protected function process( \Aimeos\MShop\Customer\Item\Iface $item, \DomElement $node )
	{
		$list = [];

		foreach( $node->attributes as $attr ) {
			$list[$attr->nodeName] = $attr->nodeValue;
		}

		foreach( $node->childNodes as $tag )
		{
			if( in_array( $tag->nodeName, ['address', 'lists', 'property', 'group'] ) ) {
				$item = $this->getProcessor( $tag->nodeName, 'customer' )->process( $item, $tag );
			} else {
				$list[$tag->nodeName] = $tag->nodeValue;
			}
		}

		return $item->fromArray( $list, true );
	}
protected function process( \Aimeos\MShop\Customer\Item\Iface $item, \DomElement $node )
	{
		$list = [];

		foreach( $node->attributes as $attr ) {
			$list[$attr->nodeName] = $attr->nodeValue;
		}

		foreach( $node->childNodes as $tag )
		{
			if( in_array( $tag->nodeName, ['address', 'lists', 'property', 'group'] ) ) {
				$item = $this->getProcessor( $tag->nodeName, 'customer' )->process( $item, $tag );
			} else {
				$list[$tag->nodeName] = $tag->nodeValue;
			}
		}

		return $item->fromArray( $list, true );
	}
protected function process ( \ Aimeos \ MShop \ Customer \ Item \ Iface $ item , \ DomElement $ node ) { $ list = [ ] ; foreach ( $ node -> attributes as $ attr ) { $ list [ $ attr -> nodeName ] = $ attr -> nodeValue ; } foreach ( $ node -> childNodes as $ tag ) { if ( in_array ( $ tag -> nodeName , [ 'address' , 'lists' , 'property' , 'group' ] ) ) { $ item = $ this -> getProcessor ( $ tag -> nodeName , 'customer' ) -> process ( $ item , $ tag ) ; } else { $ list [ $ tag -> nodeName ] = $ tag -> nodeValue ; } } return $ item -> fromArray ( $ list , true ) ; }
Updates the customer item and its referenced items using the given DOM node

@param \Aimeos\MShop\Customer\Item\Iface $item Customer item object to update
@param \DomElement $node DOM node used for updateding the customer item
@return \Aimeos\MShop\Customer\Item\Iface $item Updated customer item object
Updates the customer item and its referenced items using the given DOM node