XML validation added