AbstractXmlParser
abstract class AbstractXmlParser (View source)
An abstract class for all concrete classes that parses any kind of XML data.
Properties
protected array | $parsedFiles | Associative array of "filename => parsed data" pairs. |
Methods
array
getParsedData(string $sourcePath)
Returns parsed representation of XML file.
getRootNode(string $sourcePath)
No description
array
parseXmlFile(string $sourcePath)
Reads and parses XML file and returns internal representation of data.
array
doParsingFromRoot(SimpleXMLElement $root)
Returns array representation of XML data, starting from a root node.
Details
array
getParsedData(string $sourcePath)
Returns parsed representation of XML file.
Parses XML if it wasn't done before. Caches parsed data.
protected SimpleXMLElement
getRootNode(string $sourcePath)
No description
protected array
parseXmlFile(string $sourcePath)
Reads and parses XML file and returns internal representation of data.
abstract protected array
doParsingFromRoot(SimpleXMLElement $root)
Returns array representation of XML data, starting from a root node.