Since the API method interface is relatively static, I didn’t need to generate it on the fly, so I created a PHP script. I could have used an XSL Transform (XSLT), but instead I decided to use pure PHP. (I’d rather use PHP and realize I have too much power than use XSLT, and realize I don’t have enough. Plus, I love PHP. There’s no shame in sticking with what you know.) [...] The best package I found for my purposes is SimpleXML, which mimics the tree structure of an XML file as a series of embedded objects.
He gives an example of some simple XML returned from his REST API, how parsed it and a foreach loop to go through the methods and output the HTML with the correct values.