Search Results for

    Show / Hide Table of Contents

    Class XmlExportOptions

    Configuration options for XML exports

    Controls XML schema inclusion and formatting options.

    ------------------------------------------------

    Usage:

    var options = new XmlExportOptions
    {
    XmlIncludeSchema = true,
    XmlPrettyPrint = true
    };

    ------------------------------------------------

    Inheritance
    System.Object
    ExportOptionsBase
    XmlExportOptions
    Inherited Members
    ExportOptionsBase.SpanMode
    ExportOptionsBase.IncludeHeaders
    ExportOptionsBase.IncludeEmptyRows
    ExportOptionsBase.TextEncoding
    Namespace: IronPdf.Extractions
    Assembly: IronPdf.dll
    Syntax
    public class XmlExportOptions : ExportOptionsBase
    Remarks

    Important Considerations:

    Pretty Print: Improves readability but increases file size.

    Note: Schema inclusion is useful for validation but not always necessary.

    Related Documentation:

    How-To Guide: XML Export Guide

    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

    Inherited members

    SpanMode
    IncludeHeaders
    IncludeEmptyRows
    TextEncoding
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.