Creating ElementFlags from comments (non stadard HTML)

Topics: Developer Forum
Feb 1, 2013 at 1:58 PM
Hi everyone,

Can you tell me if it is possible to create ElementFlags starting from comments from a HTML source of a page like:
<!-- START_COMMENTZONE -->test zone
<p> paragraph to take only between comments</p> <!-- END_COMMENTZONE --> HtmlNode.ElementFlags - Start - (<!-- START_COMMENTZONE -->) with
HtmlNode.ElementFlags - End- (<!-- END_COMMENTZONE -->)

I have seen that you can add Elements, but I did not find how to specify the end of the Element wich is normally finalised in </p> by instance.
In my case I need <!-- END_COMMENTZONE --> to be the end of the Element.

I am using VSTO with .vb net

Thank you