I have the following html markup :
<div>
<span id="391d0e73-d491-4e55-9ccb-b74c6923e070">This is a text
element</span>
</div>
Now if i save this div node in an HtmlNode object and after that when i access node’s FirstChild then instead of giving span node as FirstChild it gives the node NAME: "#text" which is not present in the markup. Can please anybody help me out with this issue ?
In XML, nodes include elements, text, comments etc, e.g. in your document, the
divcan have 2textchildren:You need to specify that you want the
spanchild element on yourHtmlNode, e.g.