xml printing now prints element of attribute that should return result. Also fixed a minor indentation bug.