add valadation for simple xml document and xml with schemas