Pushing XML input parser. See TODO at the bottom for what needs to be done.