Extract Data by Using the XML Source
To add and configure an XML source, the package must already include at least one Data Flow task.
To extract data using an XML source
In SQL Server Data Tools (SSDT), open the Integration Services 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.
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 Configure an Error Output in a Data Flow Component.
To save the updated package, click Save Selected Items on the File menu.