Whether this is your essential problem or just an incidental omission is unclear, but your XML is invalid wrt to your XSD: The root element, PersonReportDetails
, is defined nowhere in the XSD. Neither is SectionName
, for that matter. There are more missing elements, in fact. Please either confirm that fixing the XML solves your problem or update the question with the true (properly pruned, please) XML and XSD.
BTW, the dozens of unused namespace prefix declarations are unnecessary clutter but innocuous at least.
Update per OP's updates:
Still, even with your updates, the XML is not valid with respect to the XSD. You can see by simple inspection that the elements of the XML are in namespaces, and the XSD has nothing about namespaces whatsoever.
Strong recommendation: Before even attempting to generate classes from your XSD, be certain that your XML is valid with respect to your XSD. If you're having trouble with the online XSD generator, try a different tool, or write the XSD manually. Then validate using a known reliable validator such as those based upon Xerces. Only after you receive no validation errors should you expect to be able to have success with the generation of C# classes.