HtmlLoadOptionsSupportVml Property

Specifies HTML parser to parse conditional comments exactly like <!--[if gte vml 1]> and not to parse conditional comments exactly like <![if !vml]>.

Namespace:  Aspose.Words
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public bool SupportVml { get; set; }

Property Value

Type: Boolean
Examples
Shows how to parse HTML document with conditional comments like "<!--[if gte vml 1]>" and "<![if !vml]>".
HtmlLoadOptions loadOptions = new HtmlLoadOptions();

// If value is true, then we parse "<!--[if gte vml 1]>", else parse "<![if !vml]>"
loadOptions.SupportVml = true;

// Wait for a response, when loading external resources
loadOptions.WebRequestTimeout = 1000;

Document doc = new Document(MyDir + "Conditional comments.htm", loadOptions);
doc.Save(ArtifactsDir + "HtmlLoadOptions.SupportVml.docx");
See Also