Media Server Markup Language (MSML) - RFC 5707の有効な xml スキーマを見つけようとしています。パーサーを作成する必要がありますが、これらの仕様ドキュメントしか見つかりません。それらをコピーして .xsd ファイルに貼り付けます。しかし、それらはエラーのようです。これらのスキーマクラスから作成するために JAXB を使用しましたが、次のエラーが発生しました: (エラーメッセージを英語に翻訳しました)
[エラー] Elementtyp "xs:complexType" には適切な Endtag "</xs:complexType>" が必要です。行 332 フォン ファイル:/E:/Downloads/jaxb-ri-2.2.6/bin/msml-dialog-base-datatypes.xsd
私はEclipseでファイルをチェックしましたが、問題はこの要素定義にあります:
<xs:element name="dtmfgen" substitutionGroup="primitive">
<xs:complexType>
<xs:extension base="primitiveType">
<xs:choice minOccurs="0">
<xs:element name="dtmfgenexit">
<xs:complexType>
<xs:group ref="sendType"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="level" use="optional" default="-6">
<xs:simpleType>
<xs:restriction base="xs:nonPositiveInteger">
<xs:maxInclusive value="0"/>
<xs:minInclusive value="-96"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="digits" type="dtmfDigits.datatype"
use="required"/>
<xs:attribute name="dur" type="posDuration.datatype" use="optional"
default="100ms"/>
<xs:attribute name="interval" type="posDuration.datatype"
use="optional" default="100ms"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
私はそれを修正する解決策を見つけることができないので、誰かが私を助けることができるかもしれません. または、MSML の有効な xsd パッケージへのリンクを教えてください。または、誰かが私のためにパーサーを持っているのがさらに良いです。
ありがとうございます。