XmlLoadOptions

XmlLoadOptions class

Options for loading XML documents.

public sealed class XmlLoadOptions : WebLoadOptions

Constructors

Name Description
XmlLoadOptions() Initializes new instance of XmlLoadOptions class.

Properties

Name Description
BasePath { get; set; } The base directory or URL that relative references in the document resolve against.
ConfigureHeaders { get; set; } Action for configuration of the request headers. First parameter of the action is the Uri.
CredentialsProvider { get; set; } Credentials provider for the Uri.
CustomCssStyle { get; set; } Implements CustomCssStyle
Encoding { get; set; } Get or sets the encoding to be used when loading the web document. If the property is null the encoding will be determined from document character set attribute
ExecuteScripts { get; set; } Gets or sets whether the document’s scripts run while it loads and converts. Default: false.
ExternalResourceHandler { get; set; } Gets or sets the handler called for each resource the document asks an engine to load. Default: null.
Format { get; } Input document file type.
virtual Format { get; } Input document file type.
HtmlRenderingMode { get; set; } Controls how HTML content is rendered. Default: AbsolutePositioning
MarginSettings { get; set; } Page margin settings
OrientationSettings { get; set; } Page orientation settings
PageLayoutOptions { get; set; } Specifies the page layout options when loading web documents.
PageNumbering { get; set; } Enable or disable generation of page numbering in converted document. Default: false
ResourceLoadingTimeout { get; set; } Timeout for loading external resources
SizeSettings { get; set; } Page size settings
SkipExternalResources { get; set; } Gets or sets whether external resources are denied. Default: true.
UseAsDataSource { get; set; } Use Xml document as data source
UsePdf { get; set; } Use pdf for the conversion. Default: false
WhitelistedResources { get; set; } Gets or sets the absolute URI prefixes of the external resources that load while SkipExternalResources is true.
XslFoFactory { get; set; } XSL-FO document stream to convert XML using XSL-FO markup file.
XsltFactory { get; set; } XSLT document stream to convert XML performing XSL transformation to HTML.
Zoom { get; set; } Specifies the zoom level as a percentage. The zoom level is applied to the document’s <body> tag before conversion, scaling the document’s visual appearance. A value of 100% represents the original size. The default value is 100.

Methods

Name Description
override Equals(object) Determines whether two object instances are equal.
virtual Equals(ValueObject) Determines whether two object instances are equal.
override GetHashCode() Serves as the default hash function.

See Also