Пример #1
0
        public override XmlElement CreateXML(XmlDocument doc)
        {
            XmlElement eltClass = base.CreateXML(doc);
            XmlElement eltMember;

            eltMember = MissingBase.CreateMemberCollectionElement("methods", rgMethods, nsMethods, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("properties", rgProperties, nsProperties, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("events", rgEvents, nsEvents, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("fields", rgFields, nsFields, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("constructors", rgConstructors, nsConstructors, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("nestedTypes", rgNestedTypes, nsNestedTypes, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            eltMember = MissingBase.CreateMemberCollectionElement("interfaces", rgInterfaces, nsInterfaces, doc);
            if (eltMember != null)
            {
                eltClass.AppendChild(eltMember);
            }

            return(eltClass);
        }
Пример #2
0
        /// <summary>
        /// Generates an XmlElement describint this element
        /// </summary>
        /// <param name="doc">The document in which to create the element</param>
        /// <returns></returns>
        public virtual XmlElement CreateXML(XmlDocument doc)
        {
            XmlElement eltMissing = doc.CreateElement(Type);

            eltMissing.SetAttribute("name", Name);
            //Status.status.SetAttributes (eltMissing);
            Status.SetAttributes(eltMissing);

            XmlElement eltAttributes = MissingBase.CreateMemberCollectionElement("attributes", rgAttributes, nsAttributes, doc);

            if (eltAttributes != null)
            {
                eltMissing.AppendChild(eltAttributes);
            }

            return(eltMissing);
        }