private function loadTags($path, &$tags, \DOMXPath $xpath, \DOMNode $context = null)
{
$result = [];
/** @var \DOMElement $node */
foreach ($xpath->query($path, $context) as $node) {
$tag = $this->loadTag($xpath, $node);
$this->validateTag($tag, $tags);
$result[] = $tag;
}
return $result;
}