Пример #1
0
        global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl Read8_DataSvcMapFileImpl(bool isNullable, bool checkType)
        {
            System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null;
            bool isNull = false;

            if (isNullable)
            {
                isNull = ReadNull();
            }
            if (checkType)
            {
                if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_DataSvcMapFileImpl && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item))
                {
                }
                else
                {
                    throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType);
                }
            }
            if (isNull)
            {
                return(null);
            }
            global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl o;
            o = new global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl();
            global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource> a_0 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource>)o.@MetadataSourceList;
            global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile>   a_1 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile>)o.@MetadataList;
            global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile>  a_2 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile>)o.@Extensions;
            global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter>      a_3 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter>)o.@Parameters;
            bool[] paramsRead = new bool[5];
            while (Reader.MoveToNextAttribute())
            {
                if (!paramsRead[4] && ((object)Reader.LocalName == (object)id4_ID && (object)Reader.NamespaceURI == (object)id5_Item))
                {
                    o.@ID         = Reader.Value;
                    paramsRead[4] = true;
                }
                else if (!IsXmlnsAttribute(Reader.Name))
                {
                    UnknownNode((object)o, @":ID");
                }
            }
            Reader.MoveToElement();
            if (Reader.IsEmptyElement)
            {
                Reader.Skip();
                return(o);
            }
            Reader.ReadStartElement();
            int state = 0;

            Reader.MoveToContent();
            int whileIterations0 = 0;
            int readerCount0     = ReaderCount;

            while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
            {
                if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                {
                    switch (state)
                    {
                    case 0:
                        if (((object)Reader.LocalName == (object)id6_MetadataSources && (object)Reader.NamespaceURI == (object)id2_Item))
                        {
                            if (!ReadNull())
                            {
                                global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource> a_0_0 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource>)o.@MetadataSourceList;
                                if (((object)(a_0_0) == null) || (Reader.IsEmptyElement))
                                {
                                    Reader.Skip();
                                }
                                else
                                {
                                    Reader.ReadStartElement();
                                    Reader.MoveToContent();
                                    int whileIterations1 = 0;
                                    int readerCount1     = ReaderCount;
                                    while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
                                    {
                                        if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                                        {
                                            if (((object)Reader.LocalName == (object)id7_MetadataSource && (object)Reader.NamespaceURI == (object)id2_Item))
                                            {
                                                if ((object)(a_0_0) == null)
                                                {
                                                    Reader.Skip();
                                                }
                                                else
                                                {
                                                    a_0_0.Add(Read2_MetadataSource(true, true));
                                                }
                                            }
                                            else
                                            {
                                                UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataSource");
                                            }
                                        }
                                        else
                                        {
                                            UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataSource");
                                        }
                                        Reader.MoveToContent();
                                        CheckReaderCount(ref whileIterations1, ref readerCount1);
                                    }
                                    ReadEndElement();
                                }
                            }
                        }
                        else
                        {
                            state = 1;
                        }
                        break;

                    case 1:
                        if (((object)Reader.LocalName == (object)id8_Metadata && (object)Reader.NamespaceURI == (object)id2_Item))
                        {
                            if (!ReadNull())
                            {
                                global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile> a_1_0 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile>)o.@MetadataList;
                                if (((object)(a_1_0) == null) || (Reader.IsEmptyElement))
                                {
                                    Reader.Skip();
                                }
                                else
                                {
                                    Reader.ReadStartElement();
                                    Reader.MoveToContent();
                                    int whileIterations2 = 0;
                                    int readerCount2     = ReaderCount;
                                    while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
                                    {
                                        if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                                        {
                                            if (((object)Reader.LocalName == (object)id9_MetadataFile && (object)Reader.NamespaceURI == (object)id2_Item))
                                            {
                                                if ((object)(a_1_0) == null)
                                                {
                                                    Reader.Skip();
                                                }
                                                else
                                                {
                                                    a_1_0.Add(Read5_MetadataFile(true, true));
                                                }
                                            }
                                            else
                                            {
                                                UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataFile");
                                            }
                                        }
                                        else
                                        {
                                            UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataFile");
                                        }
                                        Reader.MoveToContent();
                                        CheckReaderCount(ref whileIterations2, ref readerCount2);
                                    }
                                    ReadEndElement();
                                }
                            }
                        }
                        else
                        {
                            state = 2;
                        }
                        break;

                    case 2:
                        if (((object)Reader.LocalName == (object)id10_Extensions && (object)Reader.NamespaceURI == (object)id2_Item))
                        {
                            if (!ReadNull())
                            {
                                global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile> a_2_0 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile>)o.@Extensions;
                                if (((object)(a_2_0) == null) || (Reader.IsEmptyElement))
                                {
                                    Reader.Skip();
                                }
                                else
                                {
                                    Reader.ReadStartElement();
                                    Reader.MoveToContent();
                                    int whileIterations3 = 0;
                                    int readerCount3     = ReaderCount;
                                    while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
                                    {
                                        if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                                        {
                                            if (((object)Reader.LocalName == (object)id11_ExtensionFile && (object)Reader.NamespaceURI == (object)id2_Item))
                                            {
                                                if ((object)(a_2_0) == null)
                                                {
                                                    Reader.Skip();
                                                }
                                                else
                                                {
                                                    a_2_0.Add(Read6_ExtensionFile(true, true));
                                                }
                                            }
                                            else
                                            {
                                                UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:ExtensionFile");
                                            }
                                        }
                                        else
                                        {
                                            UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:ExtensionFile");
                                        }
                                        Reader.MoveToContent();
                                        CheckReaderCount(ref whileIterations3, ref readerCount3);
                                    }
                                    ReadEndElement();
                                }
                            }
                        }
                        else
                        {
                            state = 3;
                        }
                        break;

                    case 3:
                        if (((object)Reader.LocalName == (object)id12_Parameters && (object)Reader.NamespaceURI == (object)id2_Item))
                        {
                            if (!ReadNull())
                            {
                                global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter> a_3_0 = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter>)o.@Parameters;
                                if (((object)(a_3_0) == null) || (Reader.IsEmptyElement))
                                {
                                    Reader.Skip();
                                }
                                else
                                {
                                    Reader.ReadStartElement();
                                    Reader.MoveToContent();
                                    int whileIterations4 = 0;
                                    int readerCount4     = ReaderCount;
                                    while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
                                    {
                                        if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                                        {
                                            if (((object)Reader.LocalName == (object)id13_Parameter && (object)Reader.NamespaceURI == (object)id2_Item))
                                            {
                                                if ((object)(a_3_0) == null)
                                                {
                                                    Reader.Skip();
                                                }
                                                else
                                                {
                                                    a_3_0.Add(Read7_Parameter(true, true));
                                                }
                                            }
                                            else
                                            {
                                                UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:Parameter");
                                            }
                                        }
                                        else
                                        {
                                            UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:Parameter");
                                        }
                                        Reader.MoveToContent();
                                        CheckReaderCount(ref whileIterations4, ref readerCount4);
                                    }
                                    ReadEndElement();
                                }
                            }
                        }
                        else
                        {
                            state = 4;
                        }
                        break;

                    default:
                        UnknownNode((object)o, null);
                        break;
                    }
                }
                else
                {
                    UnknownNode((object)o, null);
                }
                Reader.MoveToContent();
                CheckReaderCount(ref whileIterations0, ref readerCount0);
            }
            ReadEndElement();
            return(o);
        }
 global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl Read8_DataSvcMapFileImpl(bool isNullable, bool checkType) {
     System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null;
     bool isNull = false;
     if (isNullable) isNull = ReadNull();
     if (checkType) {
     if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id3_DataSvcMapFileImpl && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
     }
     else
         throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType);
     }
     if (isNull) return null;
     global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl o;
     o = new global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl();
     global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataSource> a_0 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataSource>)o.@MetadataSourceList;
     global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataFile> a_1 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataFile>)o.@MetadataList;
     global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.ExtensionFile> a_2 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.ExtensionFile>)o.@Extensions;
     global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.Parameter> a_3 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.Parameter>)o.@Parameters;
     bool[] paramsRead = new bool[5];
     while (Reader.MoveToNextAttribute()) {
         if (!paramsRead[4] && ((object) Reader.LocalName == (object)id4_ID && (object) Reader.NamespaceURI == (object)id5_Item)) {
             o.@ID = Reader.Value;
             paramsRead[4] = true;
         }
         else if (!IsXmlnsAttribute(Reader.Name)) {
             UnknownNode((object)o, @":ID");
         }
     }
     Reader.MoveToElement();
     if (Reader.IsEmptyElement) {
         Reader.Skip();
         return o;
     }
     Reader.ReadStartElement();
     int state = 0;
     Reader.MoveToContent();
     int whileIterations0 = 0;
     int readerCount0 = ReaderCount;
     while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
         if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
             switch (state) {
             case 0:
                 if (((object) Reader.LocalName == (object)id6_MetadataSources && (object) Reader.NamespaceURI == (object)id2_Item)) {
                     if (!ReadNull()) {
                         global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataSource> a_0_0 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataSource>)o.@MetadataSourceList;
                         if (((object)(a_0_0) == null) || (Reader.IsEmptyElement)) {
                             Reader.Skip();
                         }
                         else {
                             Reader.ReadStartElement();
                             Reader.MoveToContent();
                             int whileIterations1 = 0;
                             int readerCount1 = ReaderCount;
                             while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
                                 if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
                                     if (((object) Reader.LocalName == (object)id7_MetadataSource && (object) Reader.NamespaceURI == (object)id2_Item)) {
                                         if ((object)(a_0_0) == null) Reader.Skip(); else a_0_0.Add(Read2_MetadataSource(true, true));
                                     }
                                     else {
                                         UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataSource");
                                     }
                                 }
                                 else {
                                     UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataSource");
                                 }
                                 Reader.MoveToContent();
                                 CheckReaderCount(ref whileIterations1, ref readerCount1);
                             }
                         ReadEndElement();
                         }
                     }
                 }
                 else {
                     state = 1;
                 }
                 break;
             case 1:
                 if (((object) Reader.LocalName == (object)id8_Metadata && (object) Reader.NamespaceURI == (object)id2_Item)) {
                     if (!ReadNull()) {
                         global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataFile> a_1_0 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.MetadataFile>)o.@MetadataList;
                         if (((object)(a_1_0) == null) || (Reader.IsEmptyElement)) {
                             Reader.Skip();
                         }
                         else {
                             Reader.ReadStartElement();
                             Reader.MoveToContent();
                             int whileIterations2 = 0;
                             int readerCount2 = ReaderCount;
                             while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
                                 if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
                                     if (((object) Reader.LocalName == (object)id9_MetadataFile && (object) Reader.NamespaceURI == (object)id2_Item)) {
                                         if ((object)(a_1_0) == null) Reader.Skip(); else a_1_0.Add(Read5_MetadataFile(true, true));
                                     }
                                     else {
                                         UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataFile");
                                     }
                                 }
                                 else {
                                     UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:MetadataFile");
                                 }
                                 Reader.MoveToContent();
                                 CheckReaderCount(ref whileIterations2, ref readerCount2);
                             }
                         ReadEndElement();
                         }
                     }
                 }
                 else {
                     state = 2;
                 }
                 break;
             case 2:
                 if (((object) Reader.LocalName == (object)id10_Extensions && (object) Reader.NamespaceURI == (object)id2_Item)) {
                     if (!ReadNull()) {
                         global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.ExtensionFile> a_2_0 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.ExtensionFile>)o.@Extensions;
                         if (((object)(a_2_0) == null) || (Reader.IsEmptyElement)) {
                             Reader.Skip();
                         }
                         else {
                             Reader.ReadStartElement();
                             Reader.MoveToContent();
                             int whileIterations3 = 0;
                             int readerCount3 = ReaderCount;
                             while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
                                 if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
                                     if (((object) Reader.LocalName == (object)id11_ExtensionFile && (object) Reader.NamespaceURI == (object)id2_Item)) {
                                         if ((object)(a_2_0) == null) Reader.Skip(); else a_2_0.Add(Read6_ExtensionFile(true, true));
                                     }
                                     else {
                                         UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:ExtensionFile");
                                     }
                                 }
                                 else {
                                     UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:ExtensionFile");
                                 }
                                 Reader.MoveToContent();
                                 CheckReaderCount(ref whileIterations3, ref readerCount3);
                             }
                         ReadEndElement();
                         }
                     }
                 }
                 else {
                     state = 3;
                 }
                 break;
             case 3:
                 if (((object) Reader.LocalName == (object)id12_Parameters && (object) Reader.NamespaceURI == (object)id2_Item)) {
                     if (!ReadNull()) {
                         global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.Parameter> a_3_0 = (global::System.Collections.Generic.List<global::System.Web.Compilation.WCFModel.Parameter>)o.@Parameters;
                         if (((object)(a_3_0) == null) || (Reader.IsEmptyElement)) {
                             Reader.Skip();
                         }
                         else {
                             Reader.ReadStartElement();
                             Reader.MoveToContent();
                             int whileIterations4 = 0;
                             int readerCount4 = ReaderCount;
                             while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
                                 if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
                                     if (((object) Reader.LocalName == (object)id13_Parameter && (object) Reader.NamespaceURI == (object)id2_Item)) {
                                         if ((object)(a_3_0) == null) Reader.Skip(); else a_3_0.Add(Read7_Parameter(true, true));
                                     }
                                     else {
                                         UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:Parameter");
                                     }
                                 }
                                 else {
                                     UnknownNode(null, @"urn:schemas-microsoft-com:xml-dataservicemap:Parameter");
                                 }
                                 Reader.MoveToContent();
                                 CheckReaderCount(ref whileIterations4, ref readerCount4);
                             }
                         ReadEndElement();
                         }
                     }
                 }
                 else {
                     state = 4;
                 }
                 break;
             default:
                 UnknownNode((object)o, null);
                 break;
             }
         }
         else {
             UnknownNode((object)o, null);
         }
         Reader.MoveToContent();
         CheckReaderCount(ref whileIterations0, ref readerCount0);
     }
     ReadEndElement();
     return o;
 }
Пример #3
0
 void Write8_DataSvcMapFileImpl(string n, string ns, global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl o, bool isNullable, bool needType)
 {
     if ((object)o == null)
     {
         if (isNullable)
         {
             WriteNullTagLiteral(n, ns);
         }
         return;
     }
     if (!needType)
     {
         System.Type t = o.GetType();
         if (t == typeof(global::System.Web.Compilation.WCFModel.DataSvcMapFileImpl))
         {
         }
         else
         {
             throw CreateUnknownTypeException(o);
         }
     }
     WriteStartElement(n, ns, o, false, null);
     if (needType)
     {
         WriteXsiType(@"DataSvcMapFileImpl", @"urn:schemas-microsoft-com:xml-dataservicemap");
     }
     WriteAttribute(@"ID", @"", ((global::System.String)o.@ID));
     {
         global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource> a = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource>)((global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataSource>)o.@MetadataSourceList);
         if (a != null)
         {
             WriteStartElement(@"MetadataSources", @"urn:schemas-microsoft-com:xml-dataservicemap", null, false);
             for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
             {
                 Write2_MetadataSource(@"MetadataSource", @"urn:schemas-microsoft-com:xml-dataservicemap", ((global::System.Web.Compilation.WCFModel.MetadataSource)a[ia]), true, false);
             }
             WriteEndElement();
         }
     }
     {
         global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile> a = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile>)((global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.MetadataFile>)o.@MetadataList);
         if (a != null)
         {
             WriteStartElement(@"Metadata", @"urn:schemas-microsoft-com:xml-dataservicemap", null, false);
             for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
             {
                 Write5_MetadataFile(@"MetadataFile", @"urn:schemas-microsoft-com:xml-dataservicemap", ((global::System.Web.Compilation.WCFModel.MetadataFile)a[ia]), true, false);
             }
             WriteEndElement();
         }
     }
     {
         global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile> a = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile>)((global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.ExtensionFile>)o.@Extensions);
         if (a != null)
         {
             WriteStartElement(@"Extensions", @"urn:schemas-microsoft-com:xml-dataservicemap", null, false);
             for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
             {
                 Write6_ExtensionFile(@"ExtensionFile", @"urn:schemas-microsoft-com:xml-dataservicemap", ((global::System.Web.Compilation.WCFModel.ExtensionFile)a[ia]), true, false);
             }
             WriteEndElement();
         }
     }
     {
         global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter> a = (global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter>)((global::System.Collections.Generic.List <global::System.Web.Compilation.WCFModel.Parameter>)o.@Parameters);
         if (a != null)
         {
             WriteStartElement(@"Parameters", @"urn:schemas-microsoft-com:xml-dataservicemap", null, false);
             for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
             {
                 Write7_Parameter(@"Parameter", @"urn:schemas-microsoft-com:xml-dataservicemap", ((global::System.Web.Compilation.WCFModel.Parameter)a[ia]), true, false);
             }
             WriteEndElement();
         }
     }
     WriteEndElement(o);
 }