Zend\Config\Reader\Xml
XML config reader.
Synopsis
class Xml
implements
ReaderInterface
{
- // members
- protected XMLReader $reader;
- protected string $directory;
- protected array $textNodes;
- // methods
- public array fromFile()
- public array|bool fromString()
- protected array process()
- protected mixed processNextElement()
- protected array getAttributes()
Hierarchy
Implements
Members
protected
- $directory
—
string
Directory of the file to process. - $reader
—
XMLReader
XML Reader instance. - $textNodes
—
array
Nodes to handle as plain text.
Methods
protected
- getAttributes() — Get all attributes on the current node.
- process() — Process data from the created XMLReader.
- processNextElement() — Process the next inner element.
public
- fromFile() — fromFile(): defined by Reader interface.
- fromString() — fromString(): defined by Reader interface.