1

単純な XMLFrameworkは javax.xml.namespace.QName を処理できないようです

たとえば、次の XML 要素が必要です。

<ns:FooModule Name="MyCustomeModule" Type="ns:CustomeModule">

次のフィールドに一致します。

@Attribute(name = "Type", required = true)
protected QName type;

フレームワークは次の例外を生成します。

org.simpleframework.xml.core.AttributeException: Cannot use @org.simpleframework.xml.Attribute(empty=, name=Type, required=true) to represent field 'type' protected javax.xml.namespace.QName 

誰かがこれに光を当てることができますか?

4

0 に答える 0