Included in SSIS PowerPack

SSIS Export XML File Task

Generate simple or nested XML files from SQL Server, Oracle, MySQL and other relational sources, without writing code.

Export XML File Task exports tables, views or SQL query output to an XML file or SSIS variable. Use simple mode for a quick export, or the Layout Editor to join multiple datasets (e.g. Customers, Orders, OrderDetails) into parent/child nested XML, with namespaces, file splitting and GZip compression.

The trial includes Export XML File Task and every other PowerPack component

Export XML File Task - Select Source Tables, Queries, Connection.
Select the source connection and tables or queries, then choose simple mode or a custom layout.

Trusted by data teams worldwide

MicrosoftIBMOracleDell TechnologiesHPCiscoAT&TVerizonDHLFedExUPSWalmart

Also rated on Capterra★★★★★ , Trustpilot★★★★★ and BBBA+ — see why teams trust ZappySys

At a glance

What Export XML File Task can do

Export XML File Task generates simple or complex XML files from relational sources such as SQL Server, Oracle and MySQL. In a few clicks you can shape XML from single or multiple tables, including parent/child nested documents.

Export tables, views & queries

Export one or many tables, views or SQL query output from sources such as SQL Server, Oracle or MySQL to XML.

  • Multiple objects or patterns in Source (e.g. Sales% or SalesJan|SalesFeb)
  • Multi-character SourceSplitChar to list multiple SQL statements
  • Simple mode exports without defining a layout

Component help

Nested XML layout editor

Craft complex XML with a visual drag-and-drop layout editor and live preview.

  • Nested elements, attributes and document arrays
  • Parent-child (one-to-many) joins between datasets
  • Datasets read from a table or SQL query

Create XML in SSIS guide

Save to file, variable, GZip

Write the XML to a local file, an SSIS variable or a file connection, compress it in GZip format and append to or overwrite existing files.

  • TargetAccessMode: Direct, Variable or Connection; a variable target can feed a Web API or SOAP call
  • Compress to *.gz, with KeepRaw to keep the uncompressed file
  • Append and Overwrite options for the target file

Component help

Namespaces & root options

Define namespaces and prefixes and control the XML declaration, root and row elements.

  • Namespaces (e.g. ns1=http://abc.com/schema1) and Prefix
  • DoNotOutputXmlDeclaration and XmlStandalone
  • RootElementName and RowElementName

XML namespace / prefix guide

NULL & character handling

Control how NULL values, empty nodes and special characters appear in the output.

  • DoNotOutputNullProperty and DoNotOutputEmptyNestedProperty
  • EnableCustomEscapeSequence with CustomEscapeSequenceRule to search and replace characters

Component properties

Split into multiple files

Automatically split exported XML into multiple files by size, row count or column value.

  • SplitFiles with MaxSizePerFile or MaxRowsPerFile
  • GroupByColumn (e.g. Country) creates one file per value

Component properties

Formatting & encoding

Fine-tune indentation, date/time format, culture and character encoding.

  • IndentOutput for pretty print
  • DateFormat and Culture
  • Encoding (with or without BOM) or CharacterSet

Component properties

SQL Server 2012–2025 & ADF

Runs in your environment on SQL Server 2012–2025 and Azure-SSIS.

  • SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit)
  • Azure Data Factory (SSIS IR)
  • Design packages in Visual Studio 2017, 2019, 2022, or 2026
  • Windows only (64-bit OS): Windows 7–11 or Windows Server 2012–2025

Compatibility and requirements

See all features
  • Export multiple tables/views to XML files (e.g. Sales% or SalesJan|SalesFeb)
  • Export SQL query output to XML file
  • Built-in Layout Editor for complex nested XML (document arrays, attributes, nested elements)
  • Parent/child nested documents from single or multiple tables
  • Save XML to a file, an SSIS variable or a file connection
  • Automatically split XML into multiple files by size or number of records
  • Split into one file per column value (e.g. GroupByColumn = Country), with the value used as the file name suffix
  • GZip compression and append support
  • Create multi-content XML documents
  • Multiple characters allowed in SourceSplitChar to list multiple SQL statements
  • Namespaces and prefixes, XML declaration, root and row element options
  • Skip NULL values and empty nested elements
  • Indent output (pretty print), date format, culture and encoding options (with or without BOM)
  • SingleDatasetArray to produce an array from the main dataset without an extra join, and ThrowErrorIfSourceDataMissing to fail when the source returns no rows
  • Custom escape sequence rules to replace characters
  • Variable placeholders in dataset SQL and layout for dynamic exports
  • Support for SQL Server 2025, 2022, 2019, 2017, 2016, 2014, 2012 (32/64-bit) and Azure Data Factory

Runs in your environment ·

SQL Server 2012–2025

and Azure-SSIS · Read the FAQ

How it works

From the toolbox to your first run.

Pick the source, design the layout, choose the target and split rules, all in one task editor.

Pick tables or queries, then simple or custom layout.

Set the source connection (any ADO.NET or OLE DB connection) and click Select/Edit to choose the tables, views or queries. Use simple mode to export them as-is, or check Use Custom Layout to design complex XML.

  • Several objects with table1|table2 or patterns such as Sales%
  • RootElementName and RowElementName in simple mode
  • No column metadata to maintain when a table changes
Export XML File Task source tab with connection, tables and queries

Inside the UI

Key settings, as they appear in SSDT.

Real screens from the Export XML File Task product page. Step through them, or open any shot at full size.

Export XML File Task – Select Source Tables, Queries, Connection

Use simple mode to export selected tables or queries to XML, or custom layout mode for complex XML.

Compatibility and requirements

Designed to stay inside your SSIS runtime.

  • SQL Server 2012 through 2025, 32-bit and 64-bit
  • Windows only, 64-bit OS required. SQL Server Express and Web editions do not include SSIS
  • Azure Data Factory SSIS Integration Runtime
  • Self-hosted: credentials and data stay in your environment (external API calls still reach that service)
  • Fully functional 30-day trial of SSIS PowerPack

FAQ

Questions teams ask before they drop Export XML File Task on the canvas.

What is Export XML File Task?

A Control Flow task in SSIS PowerPack that exports tables, views or SQL query output from relational sources such as SQL Server, Oracle and MySQL to an XML file or SSIS variable. Simple mode exports data as-is; custom layout mode joins multiple datasets (e.g. Customers, Orders, OrderDetails) into nested parent/child XML.

How do I create nested XML from several tables?

Check Use Custom Layout on the Source tab, add a dataset per table or query on the Custom Layout tab, then right-click Mappings to add attributes, elements and a Document Array joined to its parent dataset. The create XML in SSIS tutorial walks through it.

Can I add XML namespaces and prefixes?

Yes. Enter prefix/namespace pairs in Namespaces (e.g. ns1=http://abc.com/schema1,ns2=http://abc.com/schema2) and set Prefix for the root element. See the namespace / prefix guide.

Can it split output into multiple files?

Yes. Enable SplitFiles with MaxSizePerFile (e.g. 10mb) or MaxRowsPerFile, or set GroupByColumn to write one file per column value, with the value used as the file name suffix. Output can also be GZip-compressed.

Which SQL Server versions can I run it on?

SQL Server 2025, 2022, 2019, 2017, 2016, 2014, and 2012 (32- and 64-bit), plus Azure Data Factory with an SSIS Integration Runtime (packages must target SQL Server 2017). See Compatibility and requirements.

Independent ratings

Trusted by data teams, recognized by the industry

See why teams trust ZappySys (opens in new tab)

What customers say

  • Customer story

    ZappySys has been a fantastic way to bring our small company into the world of APIs, automation, and systems integration by providing tools within an easy-to-use framework.

    Ben KingeryOxspring Paul
  • Customer story

    At Synchronous Customers, we need to connect various types of data quickly. The super handy ZappySys connectors and great documentation let us do it without writing a lot of code.

    Joel ConnerSynchronous Customers
  • Customer story

    I looked everywhere for a product that could integrate to a web portal backend API via JSON. After many attempts, ZappySys was the only solution that gave me all the options I needed in a quick & clean interface within SSIS.

    Maz DunicSave the Children Australia
  • Customer story

    We have worked with the ZappySys support team for over a year and have consistently found them extremely helpful — resourceful and creative in offering multiple solutions to our challenges.

    Senthil SekarPublicis Groupe
  • Trustpilot

    I’ve been using ZappySys for over 6 years — it makes development faster, and I introduced it to my current company.

    Anna JohnsonTrustpilot review
  • Trustpilot

    I’m integrating data from APIs into database tables with SSIS/ZappySys — very easy to use, fast, and highly efficient without writing complex code.

    Carolyn S.Trustpilot review
  • Customer quote

    I submitted a support request and had someone logged in and fixing things within 2 hours.

    Barry Wilson
  • Customer quote

    The REST source is very powerful — the only thing I found I could use after trying components from major vendors.

    Jes KirkupKTC
  • Customer quote

    Whenever we run into an obstacle, ZappySys has a solution for us. We are so glad that we chose ZappySys PowerPack.

    Kevin ChenBerricle

Start your free trial today

Install SSIS PowerPack and drag Export XML File Task onto the Control Flow.

Turn tables and queries into simple or nested XML files, then split or compress them, in one Control Flow task.

  • Control Flow Task in SSISExport XML File Task appears in the toolbox after you install PowerPack.
  • Fully functional 30-day trialSSIS PowerPack, running in your environment.
  • Live supportHelp during your trial and after purchase.

New purchases may be eligible for refund review within 30 days. See the refund policy.

Talk to an engineer before or during your trial.

1 / 9