The Extract XML Fragment action is used to extract a node structure from an XML file and save it to a new file. You enter an XPath expression to specify the location of the fragment.
From the Task Builder Available Actions pane, open the XML folder and double-click the Extract XML Fragment action or drag it into the Steps pane.
In the File box, click the Open Folder button , navigate to the desired document, and click Open.
In the XPath expression box, enter the expression to specify the location of the fragment.
In the Output File box, click the Open Folder button , navigate to the desired document, and click Save.
In the Root node name for output box, enter the name for the root node in the new file.
If you want to overwrite any existing file that matches the output file, select Overwrite if file exists. If this is not selected, an existing file of the same name and location specified for the output file would cause the step to fail.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Extract XML Fragment Action