void Write6_CiscoIPPhoneExecuteItemType(string n, string ns, CiscoIPPhoneExecuteItemType 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(CiscoIPPhoneExecuteItemType)) {
         }
         else {
             throw CreateUnknownTypeException(o);
         }
     }
     WriteStartElement(n, ns, o, false, null);
     if (needType) WriteXsiType(@"CiscoIPPhoneExecuteItemType", @"");
     if (o.@PrioritySpecified) {
         WriteAttribute(@"Priority", @"", System.Xml.XmlConvert.ToString((global::System.Byte)((global::System.Byte)o.@Priority)));
     }
     WriteAttribute(@"URL", @"", ((global::System.String)o.@URL));
     if (o.@PrioritySpecified) {
     }
     WriteEndElement(o);
 }
 CiscoIPPhoneExecuteItemType Read6_CiscoIPPhoneExecuteItemType(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)id5_CiscoIPPhoneExecuteItemType && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) {
     }
     else
         throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType);
     }
     if (isNull) return null;
     CiscoIPPhoneExecuteItemType o;
     o = new CiscoIPPhoneExecuteItemType();
     bool[] paramsRead = new bool[2];
     while (Reader.MoveToNextAttribute()) {
         if (!paramsRead[0] && ((object) Reader.LocalName == (object)id41_Priority && (object) Reader.NamespaceURI == (object)id2_Item)) {
             o.@Priority = System.Xml.XmlConvert.ToByte(Reader.Value);
             o.@PrioritySpecified = true;
             paramsRead[0] = true;
         }
         else if (!paramsRead[1] && ((object) Reader.LocalName == (object)id38_URL && (object) Reader.NamespaceURI == (object)id2_Item)) {
             o.@URL = Reader.Value;
             paramsRead[1] = true;
         }
         else if (!IsXmlnsAttribute(Reader.Name)) {
             UnknownNode((object)o, @":Priority, :URL");
         }
     }
     Reader.MoveToElement();
     if (Reader.IsEmptyElement) {
         Reader.Skip();
         return o;
     }
     Reader.ReadStartElement();
     Reader.MoveToContent();
     int whileIterations5 = 0;
     int readerCount5 = ReaderCount;
     while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) {
         if (Reader.NodeType == System.Xml.XmlNodeType.Element) {
             UnknownNode((object)o, @"");
         }
         else {
             UnknownNode((object)o, @"");
         }
         Reader.MoveToContent();
         CheckReaderCount(ref whileIterations5, ref readerCount5);
     }
     ReadEndElement();
     return o;
 }