public function __construct(\DOMDocument $document, array $namespaces) { $this->_document = $document; $this->_namespaces = $namespaces; }