Seems like you have reused your syntax highlighter script to check the syntax of examples, and corrected many errors.
I started to write a script for it but then I realized that with short_open_tag=Off I can just run php -l on all *.xml files.
Hm, well, really :)))
The above fix (and some other similar fixes) have not been neccessary however, since these functions will only be available with PHP 5 (AFAIK). So the examples are valid PHP 5 examples... Other corrections seem to be fine...
OK. I don't know much about PHP 5. I heard that there will be private variables (and as I see also static functions) but I don't know the syntax. So sorry for that needless fix (which at least corrected indentation :-)).
http://php.net/zend-engine-2.php explains all new PHP 5 syntax.
Goba