2
나는 동적 요소를 만들 수있는 단순 요소와 복합 요소가 될 수있는 요소 A가 있습니다.요소의 xsd 유효성 검사에 대해 콘텐츠 형식 예외가 throw되었습니다.
샘플 XML은 여기에 있습니다 :
이요소 'A'는 문자를 가질 수 없습니다 : 내가 말한다 예외를 직면하고
<xsd:element name="A">
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:sequence>
<xsd:element name="B" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="C" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:choice>
</xsd:complexType>
</xsd:element>
그러나 여기 :
<A>john</A>
<A>
<B>kathy</B>
<C> bat </C>
</A>
내 XSD이 같다 [children], 유형의 내용 유형이 요소 전용이기 때문에
.. 감사합니다. hugh. 큰 도움이되었습니다. – freepublicview