src/Value/Structure/Collection.php
public static function fromXml(\DOMNodeList $xml)
    {
        $items = array();
        foreach ($xml as $xmlTag) {
            $items[] = StringLiteral::create($xmlTag->textContent);
        }
        return new static($items);
    }
public static function fromXml(\DOMNodeList $xml)
    {
        $items = array();
        foreach ($xml as $xmlTag) {
            $items[] = StringLiteral::create($xmlTag->textContent);
        }
        return new static($items);
    }
public static function fromXml ( \ DOMNodeList $ xml ) { $ items = array ( ) ; foreach ( $ xml as $ xmlTag ) { $ items [ ] = StringLiteral :: create ( $ xmlTag -> textContent ) ; } return new static ( $ items ) ; }
Builds a Collection object from XML.

@param \DOMNodeList $xml
The list of xml tags.

@return Collection
A Collection object.
Builds a Collection object from XML .