How to marshal without a namespace?

前端 未结 7 476
野的像风
野的像风 2020-12-01 06:33

I have a fairly large repetitive XML to create using JAXB. Storing the whole object in the memory then do the marshaling takes too much memory. Essentially, my XML looks lik

7条回答
  •  时光取名叫无心
    2020-12-01 07:15

    If you don't specifiy a namespace JaxB will not write one.

    Yout could use Stax on a Stream, if your strcuture is not to complicated.

提交回复
热议问题