/**
  * @param XMLReader   $reader
  * @param null|string $name element name, leave empty or use '*' for all elements
  */
 public function __construct(XMLReader $reader, $name = null)
 {
     parent::__construct($reader);
     $this->setName($name);
 }
 public function __construct(XMLReader $reader)
 {
     parent::__construct($reader);
     $this->stopDepth = $reader->depth;
 }