G
Gustaf Liljegren
I need to export an HTML file, conforming to HTML 4.01 Strict in UTF-8.
I have written code for this in XmlTextWriter. Unfortunately, there seem
to be no way to remove the XML declaration. The WriteStartDocument()
method must be called before writing the root element.
So I had a look at HtmlTextWriter instead, but I can't find a way to
save a document from there, no way to add a DOCTYPE declaration, and no
way to set the encoding.
Can it be done in .NET?
Gustaf
I have written code for this in XmlTextWriter. Unfortunately, there seem
to be no way to remove the XML declaration. The WriteStartDocument()
method must be called before writing the root element.
So I had a look at HtmlTextWriter instead, but I can't find a way to
save a document from there, no way to add a DOCTYPE declaration, and no
way to set the encoding.
Can it be done in .NET?
Gustaf