void Write5_CiscoIPPhoneResponseItemType(string n, string ns, CiscoIPPhoneResponseItemType 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(CiscoIPPhoneResponseItemType)) {
         }
         else {
             throw CreateUnknownTypeException(o);
         }
     }
     WriteStartElement(n, ns, o, false, null);
     if (needType) WriteXsiType(@"CiscoIPPhoneResponseItemType", @"");
     WriteElementStringRaw(@"Status", @"", System.Xml.XmlConvert.ToString((global::System.Int16)((global::System.Int16)o.@Status)));
     WriteElementString(@"Data", @"", ((global::System.String)o.@Data));
     WriteElementString(@"URL", @"", ((global::System.String)o.@URL));
     WriteEndElement(o);
 }
 CiscoIPPhoneResponseItemType Read5_CiscoIPPhoneResponseItemType(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)id4_CiscoIPPhoneResponseItemType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
     }
     else
         throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType);
     }
     if (isNull) return null;
     CiscoIPPhoneResponseItemType o;
     o = new CiscoIPPhoneResponseItemType();
     bool[] paramsRead = new bool[3];
     while (Reader.MoveToNextAttribute()) {
         if (!IsXmlnsAttribute(Reader.Name)) {
             UnknownNode((object)o);
         }
     }
     Reader.MoveToElement();
     if (Reader.IsEmptyElement) {
         Reader.Skip();
         return o;
     }
     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 (!paramsRead[0] && ((object) Reader.LocalName == (object)id37_Status && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 {
                     o.@Status = System.Xml.XmlConvert.ToInt16(Reader.ReadElementString());
                 }
                 paramsRead[0] = true;
             }
             else if (!paramsRead[1] && ((object) Reader.LocalName == (object)id33_Data && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 {
                     o.@Data = Reader.ReadElementString();
                 }
                 paramsRead[1] = true;
             }
             else if (!paramsRead[2] && ((object) Reader.LocalName == (object)id38_URL && (object) Reader.NamespaceURI == (object)id2_Item)) {
                 {
                     o.@URL = Reader.ReadElementString();
                 }
                 paramsRead[2] = true;
             }
             else {
                 UnknownNode((object)o, @":Status, :Data, :URL");
             }
         }
         else {
             UnknownNode((object)o, @":Status, :Data, :URL");
         }
         Reader.MoveToContent();
         CheckReaderCount(ref whileIterations3, ref readerCount3);
     }
     ReadEndElement();
     return o;
 }