This website recently got a major rebuild; if you're missing something, let Lorna know.

    Tag: xml


  1. Fetching Namespaced XML Elements With SimpleXML


    Recently I was working with some google APIs and needed to retrieve some namespaced elements from the result set. This confused me more than I expected it to so here's my code for the next time I need it (and if you use it too, then great!)

    I was reading from their analytics data feed API, this returns a few key fields and then multiple <entry> tags, each with namespaced children. The entry tags look something like:

    Read more