internal static WindowsPhoneStoreServiceAppCategoryNode ParseXml(XmlReader reader) { var node = new WindowsPhoneStoreServiceAppCategoryNode(); if (reader.IsEmptyElement) { reader.Skip(); } else { reader.ReadStartElement(); while (reader.NodeType != XmlNodeType.EndElement) { switch (reader.LocalName) { case "id": node.Id = reader.ReadElementContentAsUrn(); break; case "title": node.Title = reader.ReadElementContentAsString(); break; case "isRoot": node.IsRoot = string.Equals(reader.ReadElementContentAsString(), bool.TrueString, StringComparison.OrdinalIgnoreCase); break; case "parentId": node.ParentId = reader.ReadElementContentAsString(); break; default: reader.Skip(); break; } } reader.ReadEndElement(); } return node; }
internal static WindowsPhoneStoreServiceAppCategoryNode ParseXml(XmlReader reader) { var node = new WindowsPhoneStoreServiceAppCategoryNode(); if (reader.IsEmptyElement) { reader.Skip(); } else { reader.ReadStartElement(); while (reader.NodeType != XmlNodeType.EndElement) { switch (reader.LocalName) { case "id": node.Id = reader.ReadElementContentAsUrn(); break; case "title": node.Title = reader.ReadElementContentAsString(); break; case "isRoot": node.IsRoot = string.Equals(reader.ReadElementContentAsString(), bool.TrueString, StringComparison.OrdinalIgnoreCase); break; case "parentId": node.ParentId = reader.ReadElementContentAsString(); break; default: reader.Skip(); break; } } reader.ReadEndElement(); } return(node); }