private function loadValues(\DOMXPath $xpath, \DOMNode $node, $keys, $prefix = '@') { $result = []; foreach ($keys as $key) { $result[$key] = $this->getValueFromXPath($prefix . $key, $xpath, $node); } return $result; }