Skip to content Skip to sidebar Skip to footer

How To Create An Html Document From Scratch Using The Htmlagility Pack

I just wanted to create my own simple document using the agility pack so create a new HtmlDocument that contains just the basic container elements - i.e. &l

Solution 1:

Even easier:

var doc = new HtmlDocument();
var node = HtmlNode.CreateNode("<html><head></head><body></body></html>");
doc.DocumentNode.AppendChild(node);

Post a Comment for "How To Create An Html Document From Scratch Using The Htmlagility Pack"