This project has moved and is read-only. For the latest updates, please go here.

Option to ignore "empty" Nodes

Topics: Developer Forum, Project Management Forum, User Forum
May 23, 2010 at 1:37 PM


I have a feature request for the next version, I tried to hack it by my self into the sources but I wasn't able to do it ;(


It would be great to have an option (or do it every time) to leave out Nodes that only contain special hidden chars like "\n" or "\r\n" and so on, who need this nodes?

Because they don't have any child notes eather.


Best regards


May 29, 2010 at 11:16 PM

Those nodes are needed when writing the HtmlDocument to a file and trying to preserve original formatting as much as possible.

You can always get all the nodes with LINQ and do a .Remove() on them.