SSIS 验证错误 "xml source adapter does not support mixed content model on complex types"

SSIS Validation Error "xml source adapter does not support mixed content model on complex types"

我正在尝试解析 XML,但在使用 XML 时出现错误,因为“XML 源适配器不支持复杂类型的混合内容模型”数据流中的来源。 我对SSIS没有太多经验,我需要一些建议。

错误消息相当self-explanatory -- SSIS XML源无法处理混合内容模型。
混合模型数据示例 - 当节点文本与子节点混合时。

<description>character data <br/> more text <br/> and <strong>more data</strong></description>

您必须检查 XML 文档及其架构,并使用 XSLT 将其转换为 XML 没有混合数据的文档。可以在 SSIS XML Task 之前 运行 Data Flow XML Source.