src/Genesis/Builders/XML.php
public function populateNodes($data)
    {
        if (!\Genesis\Utils\Common::isValidArray($data)) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data structure');
        }

        // Ensure that the Array position is 0
        reset($data);

        $this->iterateArray(key($data), reset($data));

        // Finish the document
        $this->context->endDocument();
    }
public function populateNodes($data)
    {
        if (!\Genesis\Utils\Common::isValidArray($data)) {
            throw new \Genesis\Exceptions\InvalidArgument('Invalid data structure');
        }

        // Ensure that the Array position is 0
        reset($data);

        $this->iterateArray(key($data), reset($data));

        // Finish the document
        $this->context->endDocument();
    }
public function populateNodes ( $ data ) { if ( ! \ Genesis \ Utils \ Common :: isValidArray ( $ data ) ) { throw new \ Genesis \ Exceptions \ InvalidArgument ( 'Invalid data structure' ) ; } // Ensure that the Array position is 0 reset ( $ data ) ; $ this -> iterateArray ( key ( $ data ) , reset ( $ data ) ) ; // Finish the document $ this -> context -> endDocument ( ) ; }
Insert tree-structured array as nodes in XMLWriter
and end the current Document.

@param array $data - tree-structured array

@throws \Genesis\Exceptions\InvalidArgument

@return void
Insert tree - structured array as nodes in XMLWriter and end the current Document .