fleshed out XML export some more.