JAXB - Property “Value” is already defined. Use to resolve this conflict

前端 未结 7 585
再見小時候
再見小時候 2020-11-30 19:01

Using JAXB to generate XML binding classes.

The schema is based on a set of legacy XML files, and includes this snippet:



        
7条回答
  •  一向
    一向 (楼主)
    2020-11-30 19:32

    None of this bindings worked for me, i got this error:

    [ERROR] La evaluación de XPath de ".//xs:attribute[@name='Value']" produce un nodo de destino vacío
    

    It produced an empty target node... Then i realized (after 30 minutes of dispair) that my binding was aiming to a complexType instead of an element. The answer was in my xsd file.

    Thank you

提交回复
热议问题