Установить атрибут mixed=true
, когда вы определяете complexType для a
.Подробнее здесь
Пример:
<xs:element name="a">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element name="b" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>