Class XmlExportOptions
Configuration options for XML exports
Controls XML schema inclusion and formatting options.
------------------------------------------------
Usage:
var options = new XmlExportOptions
{
XmlIncludeSchema = true,
XmlPrettyPrint = true
};
------------------------------------------------
Inherited Members
Namespace: IronPdf.Extractions
Assembly: IronPdf.dll
Syntax
public class XmlExportOptions : ExportOptionsBase
Use XmlExportOptions in IronPDF when a C# application works with text extraction. It represents configuration options for XML exports Controls XML schema inclusion and formatting options. ------------------------------------------------ Usage: var options = new XmlExportOptions { XmlIncludeSchema = true, XmlPrettyPrint = true }; ------------------------------------------------.
XmlExportOptions matters when an application needs to configure or invoke text extraction from C# code. The class encapsulates the related options and behavior in a single object that is set up once and reused across render or processing calls. Typical scenarios include batch generation pipelines, templated document workflows, and integration with existing C# document services.
To use XmlExportOptions, instantiate or obtain it from the relevant entry point in the IronPDF C# API. Key properties include XmlIncludeSchema, XmlPrettyPrint. Assign options or invoke methods on the instance to configure or perform the operation. The export save PDF csharp covers typical usage in C# end to end.
using IronPdf;
var instance = new XmlExportOptions();
var current = instance.XmlIncludeSchema;
// Read or assign other properties such as XmlPrettyPrint, XmlIncludeSchemaFor the broader workflow, see the XML to PDF guide in the IronPDF C# documentation. For broader context, the text extraction portion of the IronPDF C# API contains related types that work with XmlExportOptions directly. XmlExportOptions instances inherit additional members from ExportOptionsBase that may be relevant in advanced scenarios. In application code, treat XmlExportOptions as a configured object that is constructed once and reused across operations rather than instantiated per call. Configuration is generally idempotent: assigning the same property value twice has the same effect as assigning it once. For diagnostic purposes, inspect the relevant XmlExportOptions property after each operation to confirm the configured state. See the constructors, properties, and methods tables below for the complete API surface of XmlExportOptions.
Constructors
XmlExportOptions()
Declaration
public XmlExportOptions()
Properties
XmlIncludeSchema
Whether to include XML schema declaration
Default: false
Declaration
public bool XmlIncludeSchema { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
XmlPrettyPrint
Whether to pretty-print XML output
Default: true
Declaration
public bool XmlPrettyPrint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |