Example #1
0
        public Item(HtmlAgilityPack.HtmlNode node)
        {
            this.node = node;

            var typeAttr = node.GetAttributeItemType();
            if(typeAttr != null)
            {
                var typeString = typeAttr.Value;
                Uri typeUri;
                Uri.TryCreate(typeString, UriKind.Absolute, out typeUri);
                this.Type = typeUri;
            }

            this.properties = GetProperties(node).GetEnumerator();
        }