(PHP 5 >= 5.1.0)
The XMLReader extension is an XML Pull parser. The reader acts as a cursor going forward on the document stream and stopping at each node on the way.
The number of attributes on the node
The base URI of the node
Depth of the node in the tree, starting at 0
Indicates if node has attributes
Indicates if node has a text value
Indicates if attribute is defaulted from DTD
Indicates if node is an empty element tag
The local name of the node
The qualified name of the node
The URI of the namespace associated with the node
The node type for the node
The prefix of the namespace associated with the node
The text value of the node
The xml:lang scope which the node resides
XMLReader::NONENo node type
XMLReader::ELEMENTStart element
XMLReader::ATTRIBUTEAttribute node
XMLReader::TEXTText node
XMLReader::CDATACDATA node
XMLReader::ENTITY_REFEntity Reference node
XMLReader::ENTITYEntity Declaration node
XMLReader::PIProcessing Instruction node
XMLReader::COMMENTComment node
XMLReader::DOCDocument node
XMLReader::DOC_TYPEDocument Type node
XMLReader::DOC_FRAGMENTDocument Fragment node
XMLReader::NOTATIONNotation node
XMLReader::WHITESPACEWhitespace node
XMLReader::SIGNIFICANT_WHITESPACESignificant Whitespace node
XMLReader::END_ELEMENTEnd Element
XMLReader::END_ENTITYEnd Entity
XMLReader::XML_DECLARATIONXML Declaration node
XMLReader::LOADDTDLoad DTD but do not validate
XMLReader::DEFAULTATTRSLoad DTD and default attributes but do not validate
XMLReader::VALIDATELoad DTD and validate while parsing
XMLReader::SUBST_ENTITIESSubstitute entities and expand references