public function __construct(\DOMElement $xml) { $this->localName = $xml->localName; $this->namespaceURI = $xml->namespaceURI; $this->xml = Utils::copyElement($xml); }