when I am validating the XML with XSD I got the following errors.I dont know what wrong in my code.
Could not find schema information for the attribute
Could not find schema information for the element
Could not find schema information for the element
Could not find schema information for the element
Could not find schema information for the element
my C# code
XmlReaderSettings settings = new XmlReaderSettings();
settings.ValidationType = ValidationType.Schema;
settings.Schemas.Add(null, xsdFilePath);
settings.Schemas.Add(null, xsdFilePath1);
settings.Schemas.Add(null, xsdFilePath2);
settings.Schemas.Add(null, xsdFilePath3);
settings.ValidationFlags |= XmlSchemaValidationFlags.ProcessInlineSchema;
settings.ValidationFlags |= XmlSchemaValidationFlags.ProcessSchemaLocation;
settings.ValidationFlags |= XmlSchemaValidationFlags.ReportValidationWarnings;
settings.ValidationEventHandler += new ValidationEventHandler(ValidationCallBack);
XmlReader reader = XmlReader.Create(xmlFilePath, settings);
while (reader.Read()) ;
My XML
<root>
<firstchild>
<first name="">
<br mode="hold" />
<last name=""> </last>
<br mode="hold" />
<address> </address>
</first>
</firstchild>
<second child="">
<report>
<tin> </tin>
<name> <name>
</name></name>
</report>
</second>br mode="hold" />
</root>
My XSD
<xsd:schema xmlns:ftc="urn:oecd:ties:fatca:v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sfa="urn:oecd:ties:stffatcatypes:v1" xmlns:iso="urn:oecd:ties:isofatcatypes:v1" targetnamespace="urn:oecd:ties:fatca:v1" elementformdefault="qualified" attributeformdefault="unqualified" version="1.1">
<xsd:import namespace="urn:oecd:ties:isofatcatypes:v1" schemalocation="isofatcatypes_v1.0.xsd" />
<xsd:import namespace="urn:oecd:ties:stffatcatypes:v1" schemalocation="stffatcatypes_v1.1.xsd" /></xsd:schema>