protected RJInfo(String rj, String html) { this.RJNum = rj; this.html = html; this.p = HTMLParser.GetByHTML(html); outline = new RJOutline(html); }
public RJOutline(String docs) { HTMLParser p = HTMLParser.GetByHTML(docs); NodeList nodes = p.GetFirstNode("id", "work_outline").Children; nodes.KeepAllNodesThatMatch(new TagNameFilter("tr")); for (int i = 0; i < nodes.Count; i++) { INode node = nodes.ElementAt(i); if (node != null) { node.Children.RemoveMeaninglessNodes(); this.data.Add(node.FirstChild.ToPlainTextStringEx().Trim(), node.LastChild.ToDividedTextString(" ").TrimAll()); } } }