(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::NONE
      No node type
XMLReader::ELEMENT
      Start element
XMLReader::ATTRIBUTE
      Attribute node
XMLReader::TEXT
      Text node
XMLReader::CDATA
      CDATA node
XMLReader::ENTITY_REF
      Entity Reference node
XMLReader::ENTITY
      Entity Declaration node
XMLReader::PI
      Processing Instruction node
XMLReader::COMMENT
      Comment node
XMLReader::DOC
      Document node
XMLReader::DOC_TYPE
      Document Type node
XMLReader::DOC_FRAGMENT
      Document Fragment node
XMLReader::NOTATION
      Notation node
XMLReader::WHITESPACE
      Whitespace node
XMLReader::SIGNIFICANT_WHITESPACE
      Significant Whitespace node
XMLReader::END_ELEMENT
      End Element
XMLReader::END_ENTITY
      End Entity
XMLReader::XML_DECLARATION
      XML Declaration node
XMLReader::LOADDTD
      Load DTD but do not validate
XMLReader::DEFAULTATTRS
      Load DTD and default attributes but do not validate
XMLReader::VALIDATE
      Load DTD and validate while parsing
XMLReader::SUBST_ENTITIES
      Substitute entities and expand references