I have this code snippet
XmlSchemaSet schemaSet = new XmlSchemaSet() ;
schemaSet.Valid ationEventHandl er += new ValidationEvent Handler(validat ionHandler);
schemaSet.Add(s chema);
schemaSet.Compi le();
when i printed "schema.Element s.Count" it gives me the parent xsd elements count Only but not the count of xsd imported elements that used "xsd:import " in parent xsd.
the parent Org.xsd file has something like
<xsd:import namespace="http ://www.emp.com/Employee" schemaLocation= "Employee.x sd"/>
the elements in Employee.xsd are not counted but only the elements in Org.xsd are counted.
My question
1) Is the schemaSet class not able to resolve the imported xsds ?
2) do I need to add code that resolves all the imported xsds and counts the no. of elements in it ?
XmlSchemaSet schemaSet = new XmlSchemaSet() ;
schemaSet.Valid ationEventHandl er += new ValidationEvent Handler(validat ionHandler);
schemaSet.Add(s chema);
schemaSet.Compi le();
when i printed "schema.Element s.Count" it gives me the parent xsd elements count Only but not the count of xsd imported elements that used "xsd:import " in parent xsd.
the parent Org.xsd file has something like
<xsd:import namespace="http ://www.emp.com/Employee" schemaLocation= "Employee.x sd"/>
the elements in Employee.xsd are not counted but only the elements in Org.xsd are counted.
My question
1) Is the schemaSet class not able to resolve the imported xsds ?
2) do I need to add code that resolves all the imported xsds and counts the no. of elements in it ?