Myron Turner has released XML_PullParser for PHP 1.3.1, a "token-based interface to the PHP expat XML library. It is modeled in part on the PullParser module found in the Perl HTML::Parser distribution. It moves the API 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 XML_PullParser requests "tokens" from various "tokenizing" functions. Tokens are arrays representing XML structures, which become available in the order in which they appear in the document being parsed. In addtion to the tokenizers, a rich set of accessors are provided to extract data from the elements and attributes bundled in the tokens. There are also techniques and class methods for selecting elements and attributes, and for testing for their position and relevancy. Finally, there are package-level functions to set the contexts that affect the operations of the module."