* @author Sébastien Lucas */ namespace SebLucas\EPubMeta\Dom; use DOMDocument; use DOMXPath; /** * EPUB-specific subclass of DOMXPath * * Source: https://github.com/splitbrain/php-epub-meta * @author Andreas Gohr © 2012 * @author Simon Schrape © 2015–2018 * @author Sébastien Lucas */ class XPath extends DOMXPath { public function __construct(DOMDocument $doc) { parent::__construct($doc); foreach (Element::$namespaces as $prefix => $namespaceUri) { $this->registerNamespace($prefix, $namespaceUri); } } }