{"id":1115,"date":"2017-04-26T14:14:11","date_gmt":"2017-04-26T14:14:11","guid":{"rendered":"http:\/\/zappysys.com\/blog\/?p=1115"},"modified":"2018-05-23T16:41:59","modified_gmt":"2018-05-23T16:41:59","slug":"tutorial-create-xml-in-ssis-export-xml-file-output","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/","title":{"rendered":"How to export XML from SQL Server using SSIS"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>In our previous blog post we saw <a href=\"https:\/\/zappysys.com\/blog\/ssis-import-xml-file-sql-server-parse-xml\/\" target=\"_blank\" rel=\"noopener\">how to import xml into SQL server using SSIS<\/a>. In this post we will see how to\u00a0generate xml in SSIS.\u00a0If you wish to <a href=\"\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\" target=\"_blank\" rel=\"noopener\">export JSON rather than XML then check this article<\/a><\/p>\n<p>To produce complex nested XML\u00a0you can use following two task\/components.<\/p>\n<div class=\"su-table su-table-alternate\">\n<table>\n<tbody>\n<tr>\n<td width=\"36\"><img decoding=\"async\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-file-task.png\" alt=\"Custom SSIS Tasks - Export XML File Task\" width=\"32\" \/><\/td>\n<td><a href=\"\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-xml-file-task\/\" target=\"_blank\" rel=\"noopener\">Export\u00a0XML File Task<\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"36\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-generator-transform\/ssis-xml-generator-transform.png\" alt=\"SSIS XML Generator Transform\" width=\"32\" height=\"32\" \/><\/td>\n<td><a href=\"\/\/zappysys.com\/products\/ssis-powerpack\/ssis-xml-generator-transform\/\" target=\"_blank\" rel=\"noopener\">XML Generator Transform<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Video Tutorial &#8211; Create XML in SSIS<\/h2>\n<p>Below video tutorial will show you how to produce complex XML from single or multiple input datasets using SSIS.<\/p>\n<p>Techniques illustrated in below video is almost identical for SSIS Export XML File Task and SSIS XML Generator Transform&#8230; but for demonstration we will use XML Generator Transform. If you wish to use Export XML File task then dataset will be Table or Query rather than Data flow Input.<br \/>\n<div class=\"lyte-wrapper fourthree\" style=\"width:480px;max-width:100%;margin:5px auto;\"><div class=\"lyMe playlist qsa_\\&amp;showinfo\\=0\" id=\"WYL_PLfIxLdaf-p3kZkPonLYlPuKf_78XhAY7_\"><div id=\"lyte_PLfIxLdaf-p3kZkPonLYlPuKf_78XhAY7_\" data-src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FPLfIxLdaf-p3kZkPonLYlPuKf_78XhAY7_%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC hidden\"><div class=\"tT\"><\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtube.com\/playlist?list=PLfIxLdaf-p3kZkPonLYlPuKf_78XhAY7_\" rel=\"nofollow\"><br \/>Watch this playlist on YouTube<\/a><\/noscript><\/div><\/div><\/p>\n<p>Here is another video <\/p>\n<div class=\"lyte-wrapper fourthree\" style=\"width:480px;max-width:100%;margin:5px auto;\"><div class=\"lyMe\" id=\"WYL_DlWwhXwJRhU\"><div id=\"lyte_DlWwhXwJRhU\" data-src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=%2F%2Fi.ytimg.com%2Fvi%2FDlWwhXwJRhU%2Fhqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\"><\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/DlWwhXwJRhU\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/plugins\/wp-youtube-lyte\/lyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDlWwhXwJRhU%2F0.jpg\" alt=\"\" width=\"480\" height=\"340\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:480px;margin:5px auto;\"><\/div><\/p>\n<h2>SSIS XML Generator Transform<\/h2>\n<p>Use <a href=\"\/\/zappysys.com\/products\/ssis-powerpack\/ssis-xml-generator-transform\/\" target=\"_blank\" rel=\"noopener\">SSIS XML generator Transform<\/a> when you want to produce XML inside data flow and feed to downstream system or save to XML file (You can use Flat File destination). If you have need for more flexible approach or save XML into SSIS Variable so you can <a href=\"https:\/\/zappysys.com\/blog\/http-post-in-ssis-send-data-to-web-api-url-json-xml\/\" target=\"_blank\" rel=\"noopener\">POST XML data to Web API or SOAP webservice call<\/a> then use Export XML File Task.<\/p>\n<h3>SSIS XML Generator Transform &#8211; Generate XML and save to file<\/h3>\n<div id=\"attachment_1126\" style=\"width: 536px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1126\" class=\"size-full wp-image-1126\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\" alt=\"SSIS XML generator transform - Create XML Output inside Data flow\" width=\"526\" height=\"410\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png 526w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file-300x234.png 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/a><p id=\"caption-attachment-1126\" class=\"wp-caption-text\">SSIS XML generator transform &#8211; Create XML Output inside Data flow<\/p><\/div>\n<h2>SSIS Export XML File Task<\/h2>\n<p>When you have need to generate XML from multiple SQL query \/ tables and save into XML File or SSIS Variable then you can consider Export XML File Task. Few options available in Export File Task which are not found in XML Generator Transform such as Compression, Splitting options, Simple export\u00a0without Layout.<\/p>\n<h3>SSIS Export XML File Task &#8211; Select Source Tables, Queries, Connection<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Select Source Tables, Queries, Connection\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-file-task-source-tables.png\" alt=\"SSIS ExportXML File Task - Select Source Tables, Queries, Connection\" \/><\/p>\n<h3>SSIS Export XML File Task &#8211; Split file options (Split by Size, Row count and Group by column<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Split file options (Split by Size, Row count and Group by column\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-file-task-split-file-options.png\" alt=\"SSIS ExportXML File Task - Split file options (Split by Size, Row count and Group by column\" \/><\/p>\n<h3>SSIS Export XML File Task &#8211; Split file options (Split by Size, Row count and Group by column<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Split file options (Split by Size, Row count and Group by column\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-file-task-split-file-options.png\" alt=\"SSIS ExportXML File Task - Split file options (Split by Size, Row count and Group by column\" \/><\/p>\n<h2>Create Input Datasets<\/h2>\n<p>First step to product XML is define input datasets. If you have no parent child relation (e.g. Customer and Orders) then most likely you will need one dataset. If you are using XML Generator Transform then any attached inputs to your transform becomes datasets. First dataset is automatically set to Root dataset.<\/p>\n<p>For Export XML File task you have to define datasets manually. You need to pick connection manager and then select Table or Query. To make query dynamic you can use Variable Placeholder<\/p>\n<pre>select * from MyTable Where Month='{{User::varMonthName}}'<\/pre>\n<h3>SSIS Export XML File Task &#8211; Layout Editor (Define nested elements and Parent-Child relation)<\/h3>\n<h2><img decoding=\"async\" title=\"SSIS Export XML File Task - Layout Editor (Define nested elements and Parent-Child relation)\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-generator-transform\/ssis-xml-generator-define-shape-nested-xml.png\" alt=\"SSIS ExportXML File Task - Layout Editor (Define nested elements and Parent-Child relation)\" \/><\/h2>\n<div>\n<h3>SSIS Export XML File Task &#8211; Add\/Edit input Dataset<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Add\/Edit Dataset\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-task-add-edit-input-dataset.png\" alt=\"SSIS ExportXML File Task - Add\/Edit input Dataset\" \/><\/p>\n<\/div>\n<h2>Create XML Elements \/Attributes<\/h2>\n<p>XML Element has start and end tags (end tag is optional if no children elements found). To add column as Element you can click on Add Element option.<\/p>\n<p>Example of Elements<\/p>\n<pre class=\"lang:default decode:true \">&lt;rootelement&gt;\r\n  &lt;rowelement&gt;&lt;prop1element&gt;AAA&lt;\/prop1element&gt;&lt;\/rowelement&gt;\r\n  &lt;rowelement&gt;&lt;prop1element \/&gt;&lt;\/rowelement&gt;\r\n  &lt;rowelement&gt;&lt;prop1element&gt;CCC&lt;\/prop1element&gt;&lt;\/rowelement&gt;\r\n&lt;\/rootelement&gt;<\/pre>\n<h3>SSIS Export XML File Task &#8211; Layout Editor Right Click Menu<\/h3>\n<h2><img decoding=\"async\" title=\"SSIS Export XML File Task - Layout Editor Right Click Menu\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-generator-transform\/ssis-xml-layout-editor-right-click-menu.png\" alt=\"SSIS ExportXML File Task - Layout Editor Right Click Menu\" \/><\/h2>\n<div>\n<h3>SSIS Export XML File Task &#8211; Add\/Edit Attribute<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Add\/Edit Attribute\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-generator-transform\/ssis-xml-generator-add-edit-attributes.png\" alt=\"SSIS ExportXML File Task - Add\/Edit Attribute\" \/><\/p>\n<\/div>\n<h2>Create nested XML elements (indentation)<\/h2>\n<p>When you need nested element (e.g. &lt;LocationInfo&gt;&lt;ZipCode&gt;xxxxxx&lt;\/ZipCode&gt;&lt;\/LocationInfo&gt;\u00a0) then Add element and check Unbound option on the UI (e.g. add LocationInfo as Unbound).<\/p>\n<h2>Setting Advanced Option<\/h2>\n<p>In this section you will learn how to set many advanced options for XML generation.<\/p>\n<h3>SSIS Export XML File Task &#8211; Select XML Format Options<\/h3>\n<p><img decoding=\"async\" title=\"SSIS Export XML File Task - Select XML Format Options\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-xml-file-task\/ssis-export-xml-file-task-target-format-options.png\" alt=\"SSIS ExportXML File Task - Select XML Format Options\" \/><\/p>\n<h3>Handling NULL in XML output<\/h3>\n<p>By default NULL attributes or elements not included in output because its hard to identify Blank string vs NULL string. If you wish to explicitly flag NULL items in output then you may uncheck\u00a0Do not include NULL option. By doing so you will notice two changes. In your root node xmlns:xsi\u00a0attribute is added to add standard namespace and when element is NULL you will see xsi:nil=&#8221;true&#8221; in the self closing element tag. This indicates that column data is NULL. If you see self closing tab without xsi:nil=&#8221;true&#8221; then its Blank value rather than NULL.<\/p>\n<h3>Define XML Namespace (Prefix)<\/h3>\n<p>By default no XML namespace is defined in the XML output. But if you wish to include any attribute or element with prefix then it requires namespace declaration. For more information on how to create XML with namespace <a href=\"https:\/\/zappysys.com\/blog\/ssis-generate-xml-namespace-prefix\/\" rel=\"noopener\" target=\"_blank\">check this article<\/a>.<\/p>\n<p>Consider the following example. It has some prefix called ns1 for element and ns2 for attribute. To achieve such format make sure you define two namespaces on XML Options tab (e.g. ns1=http:\/\/someurl1,ns2=http:\/\/someurl2 ). Once you do this ns1 and ns2 can be used as prefix for any element or attribute.<\/p>\n<p>Example of Namespace\/Prefix use<\/p>\n<pre class=\"lang:default decode:true \">&lt;data xmlns:ns1=\"http:\/\/someurl1\" xmlns:ns2=\"http:\/\/someurl2\" &gt;\r\n  &lt;ns1:row ns2:id=\"111\"&gt;&lt;prop1&gt;AAA&lt;\/prop1&gt;&lt;\/ns1:row&gt;\r\n&lt;\/data&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>Using XML Namespace Prefix for Element or Attributes<\/h3>\n<p>In order to use namespace you have to set Prefix property for any Element or Attribute when you Add them. For example to add element &lt;row&gt; with prefix ns1 (e.g. &lt;ns1:row&gt; ) you have to set prefix to ns1 on the Add\/Edit Element UI. Before you can use Prefix make sure namespace is defined as per previous section.<\/p>\n<h3>Removing XML declaration<\/h3>\n<p>Some times you have requirement to omit XML declaration (e.g. first line \u00a0&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt; ). For that check &#8220;Do not output XML declaration&#8221; option on XML options tab.<\/p>\n<h3>Remove Invalid XML Characters<\/h3>\n<p>If you ever encounter invalid XML characters and want to remove them <a href=\"https:\/\/zappysys.com\/blog\/how-to-remove-invalid-characters-from-xml-using-ssis-and-regex\/\" target=\"_blank\" rel=\"noopener\">then check this article<\/a><\/p>\n<h3>Change \/ Remove Root Element from output<\/h3>\n<p>By default XML document has root element called &#8220;Root&#8221; (See XML Options tab to change this). You can change this to custom name or\u00a0\u00a0remove it\u00a0if you wish to hide start and end tag of root element from output.<\/p>\n<h2>Change \/ Removing XML Row Element from output<\/h2>\n<p>By default row of dataset will start with default Row element (e.g. &lt;DatasetRow&gt;&#8230; &lt;\/DatasetRow&gt;). if you wish to hide those start and end tag then make sure you remove default Row element name in Dataset Declaration (Edit dataset and remove Row Element name)<\/p>\n<h2>Define Parent Child Join in XML datasets (One to Many)<\/h2>\n<p>If you have parent child relationship in XML (e.g. each Customer Tag has multiple Orders) then you need to define at least two datasets (One for parent (i.e. Customer) and one for Child (i.e Orders)).<\/p>\n<p>&nbsp;<\/p>\n<div style=\"width: 699px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"SSIS Export XML File Task - Add\/Edit Document Array\" src=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/xml-generator-transform\/ssis-xml-generator-add-edit-document-array.png\" alt=\"SSIS Export XML File Task - Add\/Edit Document Array\" width=\"689\" height=\"384\" \/><p class=\"wp-caption-text\">Define Parent to Child Relationship for XML Output (One to Many JOIN)<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>Making things Dynamic (Query Parameter \/ Layout Information)<\/h2>\n<p>To make things dynamic you can insert <a href=\"\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-format-specifiers.htm\" target=\"_blank\" rel=\"noopener\">variable placeholders<\/a> anywhere in the editor (Look for {{Insert variable}} menu item in the editor). If you want to make entire Layout dynamic then use option to Load Layout from File or Variable. If this option is not available then consider <a href=\"https:\/\/zappysys.com\/blog\/ssis-dataflow-expression-source-component-property\/\" target=\"_blank\" rel=\"noopener\">SSIS expression to make it dynamic<\/a><br \/>\n<strong>Example:<\/strong><\/p>\n<pre>select * from MyTable Where Month='{{User::varMonthName}}'<\/pre>\n<h2>Controlling XML Date Time formatting (How to use ISO date)<\/h2>\n<p>By default date\/time values are exported as yyyy-MM-dd HH:mm:ss format but if you wish to change so its exported to ISO format or other format then goto XML Options tab and set Date format to yyyy-MM-ddTHH:mm:ss for ISO. If Datetime is UTC then change format to yyyy-MM-ddTHH:mm:ssZ (append &#8220;Z&#8221; at the end)<\/p>\n<h2>Conclusion<\/h2>\n<p>Creating nested XML may not be easy task but innovative drag and drop approach of <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">SSIS PowerPack<\/a> certainly makes it easy to produce complex XML with every possible option on hand. <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">Try SSIS PowerPack for free<\/a> (45+ tasks and components) and explore what else you can do with it.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In our previous blog post we saw how to import xml into SQL server using SSIS. In this post we will see how to\u00a0generate xml in SSIS.\u00a0If you wish to export JSON rather than XML then check this article To produce complex nested XML\u00a0you can use following two task\/components. Video Tutorial &#8211; Create XML [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1126,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132],"tags":[12,247,4,189,190,7],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>How to export XML from SQL Server using SSIS | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"How to export XML from SQL Server using SSIS | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2017-04-26T14:14:11+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2018-05-23T16:41:59+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"526\" \/>\r\n\t<meta property=\"og:image:height\" content=\"410\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/\",\"url\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/\",\"name\":\"How to export XML from SQL Server using SSIS | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\",\"datePublished\":\"2017-04-26T14:14:11+00:00\",\"dateModified\":\"2018-05-23T16:41:59+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png\",\"width\":526,\"height\":410,\"caption\":\"SSIS XML generator transform - Create XML Output inside Data flow\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to export XML from SQL Server using SSIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to export XML from SQL Server using SSIS | ZappySys Blog","description":"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/","og_locale":"en_US","og_type":"article","og_title":"How to export XML from SQL Server using SSIS | ZappySys Blog","og_description":"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.","og_url":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2017-04-26T14:14:11+00:00","article_modified_time":"2018-05-23T16:41:59+00:00","og_image":[{"width":526,"height":410,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/","url":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/","name":"How to export XML from SQL Server using SSIS | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png","datePublished":"2017-04-26T14:14:11+00:00","dateModified":"2018-05-23T16:41:59+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Learn how to create XML in SSIS using drag and drop approach. Export data in XML format from multiple input datasets and save output to File or Variable.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/04\/ssis-create-xml-output-export-file.png","width":526,"height":410,"caption":"SSIS XML generator transform - Create XML Output inside Data flow"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/tutorial-create-xml-in-ssis-export-xml-file-output\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to export XML from SQL Server using SSIS"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/1115"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=1115"}],"version-history":[{"count":15,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/1115\/revisions"}],"predecessor-version":[{"id":3593,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/1115\/revisions\/3593"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/1126"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=1115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=1115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=1115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}