what is the difference between xmlschema.Items xmlschema.Elements ? They seem to return different things altogether ? what should i use when ? What should i do if i just want to simply get all the elements defined in the XSD sequentially ? I have used the .Items and .Elements approach , both give me different results , i am not sure which one would fit my use .
foreach(var entry in xmlschema.Elements)
{
Console.WriteLine("{0}:{1}",entry.Key,entry.Value);
}
foreach (var obj in xmlschema.Items)
{
Console.WriteLine("{0}",obj.GetType());
}
Update :- and why do both not pick up these
<attribute name="ref" type="IDREF"/>
<attribute name="sequenceID" type="integer"/>
<element name="Metadata" type="s:MetadataType" abstract="true"/>