Represents an application category information.
        internal static MarketplaceAppCategoryNode ParseXml(XmlReader reader)
        {
            var node = new MarketplaceAppCategoryNode();

            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.InvariantCultureIgnoreCase);
                            break;

                        case "parentId":
                            node.ParentId = reader.ReadElementContentAsString();
                            break;

                        default:
                            reader.Skip();
                            break;
                    }
                }

                reader.ReadEndElement();
            }

            return node;
        }
        internal static MarketplaceAppCategoryNode ParseXml(XmlReader reader)
        {
            var node = new MarketplaceAppCategoryNode();

            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.InvariantCultureIgnoreCase);
                        break;

                    case "parentId":
                        node.ParentId = reader.ReadElementContentAsString();
                        break;

                    default:
                        reader.Skip();
                        break;
                    }
                }

                reader.ReadEndElement();
            }

            return(node);
        }