Raw XML check for document to be well formed