Option to ignore "empty" Nodes

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

Hi,

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

Christian 

May 29, 2010 at 10: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.