To disassemble a result set, use the
SQL Receive Location component with the XML receive pipeline. Alternatively, you can use a custom pipeline that contains the
XML Disassembler pipeline component. To divide the schema
that is created by the Add Generated Items Wizard into two schemas, follow these steps:
1. | Create an envelope schema that contains the root element of the result data. |
2. | Create an <any> element schema. |
3. | Set the <any> element schema namespace equal to "##any." |
4. | Set the <any> element schema that is named processContents equal to "lax." |
5. | Modify the generated schema to remove the root element.
Notice that everything moves up one level. |
6. | Set the Body XPath property of the root element equal to itself. |
Important Make sure that the envelope schema and the document schema have the same target namespace.