public XmlMicrodataReader(HtmlAgilityPack.HtmlNode rootEntity) { this.readState = System.Xml.ReadState.Initial; this.rootEntity = new Item(rootEntity); this.nodeType = XmlNodeType.None; var typeAttr = rootEntity.GetAttributeItemType(); if (typeAttr != null) { Uri type; Uri.TryCreate(typeAttr.Value, UriKind.Absolute, out type); this.Type = type; } }