A simple PHP Class that flattens an XML structure into an array