adding basic check to see if xml is well formed