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.
<html><head></head><body></body></html>
How can I do this from scratch without actually loading the htmldocument with anything.
Even easier:
var doc = new HtmlDocument();
var node = HtmlNode.CreateNode("<html><head></head><body></body></html>");
doc.DocumentNode.AppendChild(node);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With