Пример #1
0
        private void Write5_XmlSchemaAnnotation(XmlSchemaAnnotation o)
        {
            if ((object)o == null)
            {
                return;
            }
            WriteStartElement("annotation");

            WriteAttribute(@"id", @"", ((System.String)o.@Id));
            WriteAttributes((XmlAttribute[])o.@UnhandledAttributes, o);
            Microsoft.Xml.Schema.XmlSchemaObjectCollection a = (Microsoft.Xml.Schema.XmlSchemaObjectCollection)o.@Items;
            if (a != null)
            {
                for (int ia = 0; ia < a.Count; ia++)
                {
                    XmlSchemaObject ai = (XmlSchemaObject)a[ia];
                    if (ai is XmlSchemaAppInfo)
                    {
                        Write7_XmlSchemaAppInfo((XmlSchemaAppInfo)ai);
                    }
                    else if (ai is XmlSchemaDocumentation)
                    {
                        Write6_XmlSchemaDocumentation((XmlSchemaDocumentation)ai);
                    }
                }
            }
            WriteEndElement();
        }
Пример #2
0
 internal abstract void SetItems(XmlSchemaObjectCollection newItems);
Пример #3
0
 internal void SetAttributes(XmlSchemaObjectCollection newAttributes)
 {
     _attributes = newAttributes;
 }
Пример #4
0
 internal abstract XmlSchemaDatatype DeriveByRestriction(XmlSchemaObjectCollection facets, XmlNameTable nameTable, XmlSchemaType schemaType);