Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Import XML files with mixed content model on Complex Types

$
0
0
Hi Masters,

I Would like to ask your help to solve a problem I have been facing in a development in SSIS.
I need to import data from several XML files, but I get erros when trying to configure the XML Source task. The error is just below "ERROR".The reason for this error is because this task does not support a schema with mixed content, as the following example XSD (Part of this xsd).
Note: this will xml content with special characters.

How can I solve this problem?

  <xs:element name="field">
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="import:ecs_selection"/>
        <xs:element ref="import:p"/>
        <xs:element ref="import:value"/>
      </xs:choice>
      <xs:attribute name="name" use="required" type="xs:NCName"/>
      <xs:attribute name="title" type="xs:NMTOKEN"/>
    </xs:complexType>
  </xs:element>

ERRO:
Error at Data Flow Task[XML Source[27]]: The XML Source Adapter does not support mixed content model on Complex Types

Viewing all articles
Browse latest Browse all 24688

Trending Articles