JAXB multiple schemas with element reference

前端 未结 1 539
长发绾君心
长发绾君心 2020-12-28 15:26

I have two schemas which are processed using JAXB. The first schema is preprocessed and information of this is used using an episode file (following http://www.java.net/blog

1条回答
  •  误落风尘
    2020-12-28 15:58

    I've written a few Schema Definitions in my day. You are declaring your first xsd in your second schema declaration and then you are importing it.

    As per MSDN, when you import an XSD you do not include it in the Schema Declaration. This is where it is in your schema declaration.

    xmlns:test="http://www.example.org/Test/"

    Remove this and just do the import... ( )

    see:http://msdn.microsoft.com/en-us/library/ms256480.aspx

    0 讨论(0)
提交回复
热议问题