Added basic XML functionality