Naive checking for XML structure