Class Sabre\Xml\Reader

extends XMLReader
uses ContextStackTrait

The Reader class expands upon PHP's built-in XMLReader.

The intended usage, is to assign certain XML elements to PHP classes. These need to be registered using the $elementMap public property.

After this is done, a single call to parse() will parse the entire document, and delegate sub-sections of the document to element classes.

Methods
Methods inherited from XMLReader
close(), getAttribute(), getAttributeNo(), getAttributeNs(), getParserProperty(), isValid(), lookupNamespace(), moveToAttribute(), moveToAttributeNo(), moveToAttributeNs(), moveToElement(), moveToFirstAttribute(), moveToNextAttribute(), read(), next(), open(), readInnerXml(), readOuterXml(), readString(), setSchema(), setParserProperty(), setRelaxNGSchema(), setRelaxNGSchemaSource(), XML(), expand()
Methods used from Sabre\Xml\ContextStackTrait
pushContext(), popContext()
Properties used from Sabre\Xml\ContextStackTrait
$elementMap, $contextUri, $namespaceMap, $classMap