| title | Extract Data by Using the XML Source | |||
|---|---|---|---|---|
| description | Extract Data by Using the XML Source | |||
| author | chugugrace | |||
| ms.author | chugu | |||
| ms.date | 03/01/2017 | |||
| ms.service | sql | |||
| ms.subservice | integration-services | |||
| ms.topic | how-to | |||
| helpviewer_keywords |
|
[!INCLUDEsqlserver-ssis]
To add and configure an XML source, the package must already include at least one Data Flow task.
-
In [!INCLUDEssBIDevStudioFull], open the [!INCLUDEssISnoversion] project that contains the package you want.
-
In Solution Explorer, double-click the package to open it.
-
Click the Data Flow tab, and then, from the Toolbox, drag the XML source to the design surface.
-
Double-click the XML source.
-
In the XML Source Editor, on the Connection Manager page, select a data access mode:
-
For the XML file location access mode, click Browse and locate the folder that contains the XML file.
-
For the XML file from variable access mode, select the user-defined variable that contains the path of the XML file.
-
For the XML data from variable access mode, select the user-defined variable that contains the XML data.
[!NOTE]
The variables must be defined in the scope of the Data Flow task that contains the XML source, or in the scope of the package; additionally, the variable must have a string data type. -
-
Optionally, select Use inline schema to indicate that the XML document includes schema information.
-
To specify an external XML Schema definition language (XSD) schema for the XML file, do one of the following:
-
Click Browse to locate an existing XSD file.
-
Click Generate XSD to create an XSD from the XML file.
-
-
To update the names of output columns, click Columns and edit the values in the Output Column list.
-
To configure the error output, click Error Output. For more information, see Debugging Data Flow.
-
Click OK.
-
To save the updated package, click Save Selected Items on the File menu.
XML Source
Integration Services Transformations
Integration Services Paths
Data Flow Task