StringReader txtReader;
txtReader = new StringReader(cleanedMarkUp);
XPathDocument xdoc = new XPathDocument(txtReader);
XPathNavigator nav = xdoc.CreateNavigator();
nav.MoveToRoot();
XPathExpression expr = nav.Compile("//tr[@bgcolor='#f3f2f1']");
XPathNodeIterator node = nav.Select(expr);
while (node.MoveNext())
MessageBox.Show(node.Current.Value);
没有评论:
发表评论