// Adds all items in the XmlSchemaObjectTable to the specified XmlSchema // private static void AddTableToSchema(XmlSchema outSch, XmlSchemaObjectTable table) { var e = table.GetEnumerator(); while (e.MoveNext()) { outSch.Items.Add((XmlSchemaObject)e.Value); } }
private void GenerateAttribute(XmlSchemaObjectTable attributes, InstanceElement elem) { IDictionaryEnumerator ienum = attributes.GetEnumerator(); while (ienum.MoveNext()) { if (ienum.Value is XmlSchemaAttribute) { GenerateInstanceAttribute((XmlSchemaAttribute)ienum.Value, elem); } } }