src/Decoder.php
protected function readNode($reader)
    {
        if ($this->currentNode !== null) {
            return $this->currentNode;
        }

        $this->currentNode = new \fpoirotte\XRL\Node($reader, $this->validate, true);
        return $this->currentNode;
    }
protected function readNode($reader)
    {
        if ($this->currentNode !== null) {
            return $this->currentNode;
        }

        $this->currentNode = new \fpoirotte\XRL\Node($reader, $this->validate, true);
        return $this->currentNode;
    }
Read a node from the XML reader
and return it.

\param XMLReader $reader
Reader to read the node from.

\retval fpoirotte::XRL::Node
The XML node that's been read.