private void AddGlobalComponents(XmlSchema schema)
{
foreach (XmlSchemaElement el in schema.Elements.Values)
{
GlobalElements.Add(el.QualifiedName, el);
}
foreach (XmlSchemaAttribute a in schema.Attributes.Values)
{
GlobalAttributes.Add(a.QualifiedName, a);
}
foreach (XmlSchemaType t in schema.SchemaTypes.Values)
{
GlobalTypes.Add(t.QualifiedName, t);
}
foreach (XmlSchemaAttributeGroup g in schema.AttributeGroups.Values)
{
global_attribute_groups.Add(g.QualifiedName, g);
}
foreach (XmlSchemaGroup g in schema.Groups.Values)
{
global_groups.Add(g.QualifiedName, g);
}
foreach (DictionaryEntry pair in schema.IDCollection)
{
global_ids.Add(pair.Key, pair.Value);
}
foreach (XmlSchemaIdentityConstraint ic in schema.NamedIdentities.Values)
{
global_identity_constraints.Add(ic.QualifiedName, ic);
}
}