New York Times Interview Question

How would you build a script to read an XML feed and process it into a creative?