JAXB XJC compiler disregarding mixed=true on XML Schema documents

后端 未结 3 1670
北荒
北荒 2021-02-03 10:57

XJC seems to be completely ignoring mixed=\"true\" on my XML Schema elements thereby not allowing me to extract text content. From the sample XML below, I need to b

3条回答
  •  悲哀的现实
    2021-02-03 11:33

    http://blogs.oracle.com/mgrebac/entry/handling_extended_mixed_content_in

    This worked! Just create a binding file like so:

    
    
      
    
    

    Then use the -b parameter on the command line with the way you usually do it.

提交回复
热议问题