Topic: XMLize output, clean exit

I needed to include punBB output inside my pages, so I've used output buffering and parsed output as XML.

I've had to modify punBB to achieve that. It would be nice if that was possible out-of-the-box.

Output is not standalone XML, so it's more difficult to parse.
* <html> element should have xmlns="http://www.w3.org/1999/xhtml"
* Please use numeric entities. &#160; instead of  

Code uses exit(), so it can't be include()d in PHP.
* Please change exit() to pun_exit(), so it can be easily modified to throw exception instead of killing php.

Another little problem is that pun_bb uses many global variables. To avoid conflicts and allow easy inclusion inside functions punbb could use global $pun['var'] instead of $pun_var;, but that's not big issue.

2

Re: XMLize output, clean exit

I'm just amazed those are the only problems you had with the output.