Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Mapping to an Abstract Type Node › Mapping to an Abstract Type Node
It sounds like the schema is using abstract types rather than abstract elements.
something like this:
[code:1:6375a16c7c]<element name=\"Detail\" type=\"Detail\">
<complexType name = \"Detail\" abstract=\"true\">
<attribute name=\"Type\" type=\"string\" />
</complexType>
<complexType name=\"GeneralDetail\">
<complexContent mixed=\"false\">
<extension base=\"DetailType\"/>
</complexContent>
</complexType>
<complexType name=\"SpecificDetail\">
<complexContent mixed=\"false\">
<extension base=\"DetailType\"/>
</complexContent>
</complexType>[/code:1:6375a16c7c]
If this is the case then the output <Detail xsi:type=\”GeneralDetail\” Type=\”A\”/> is the correct output.
There is no element called GeneralDetail, so this <GeneralDetail Type=\”A\”/> is not valid.
If you wish to to use different element names then the schema needs to have the an abstract element and use a substitutionGroup