XML Schema Validation of XElement?

I understand the problem you have with the provided API, as far as I see it you have two options, one being to put your XElement into an XDocument with e.g. XDocument doc = new XDocument(xElementToValidate) and then to call the Validate method on that XDocument where all you have to pass in is the XmlSchemaSet the second option being the way you outlined yourself, namely to use the Validate method of the XElement making sure you pass in the XmlSchemaSet and the root element definition in that schema set as the XmlSchemaObject . If these are simple schemas with just one top level element definition all you have to do is e.g.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions