Question

I am creating a pipeline component using .net class library Where I want to pass an HTML document as a input and get a XMLdocument as output,

I am getting an error in this line

HtmlDocument OrgDoc= new HtmlDocument

The error is no constructor for HTML document do I miss some reference if yes what it that. Actually I am using system.windows.forms.htmldocument.

Any suggestions to rectify the error is welcomed.

Was it helpful?

Solution

BizTalk is correct; System.Windows.Forms.HtmlDocument has no public constructors. It is intended to be used via the WebBrowser control only (to represent the DOM), and I don't recommend trying to do that on a server. If you are trying to parse HTML, try using the Html Agility Pack instead.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top