Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: Children nodes

$
0
0

Hi actually both seem to be working for me..
What version are you using? 1.4.6?
what .Net version?

tried version 1.4.0 and works as well..

all on one line no spaces.
test.xml = <tr data-stopcode="F01093"><td>5</td><td ><span>Fifth street</span></td></tr>

HtmlDocument hp = new HtmlDocument();
            
hp.Load(@"C:\Development\test.xml");
var tr = hp.DocumentNode.FirstChild;
// works
var txt = tr.Elements("td").Last().FirstChild.InnerText;
// works
var txtII = tr.LastChild.FirstChild.InnerText;

Whats your exact code and I'll take a peek..


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>