Added basic XML validity checker