XML_PullParser moves the API of the PHP XML facility from an event-based model to a token-based model. Instead of processing data as it is passed from the parser to callbacks, a script using PullParser works with "tokens". Tokens are arrays representing XML structures, which become available in the order in which they appear in the document being parsed. Methods are provided both to get tokens and to extract their data.

For more information, or to download XML_PullParser, visit the XML_PullParser web site:
http://www.mturner.org/XML_PullParser/