JAXB unmarshall and embedded XSD

后端 未结 1 1249
被撕碎了的回忆
被撕碎了的回忆 2021-01-23 04:33

I have an XML who embed the XSD, so it\'s something like :



  

        
1条回答
  •  不知归路
    2021-01-23 05:07

    You can leverage a StAX StreamFilter on an XMLStreamReader so that the elements corresponding to the XML schema are not reported as events. Then you can unmarshal from the XMLStreamReader with JAXB.

    • JAXB filtered parsing

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