How to marshal without a namespace?

前端 未结 7 499
野的像风
野的像风 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:21

    Check your package-info.java (in the package where your jaxb-annotated classes are). There is the namespace attribute of @XmlSchema there.

    Also, there is a namespace attribute in the @XmlRootElement annotation.

提交回复
热议问题