How to write unescaped XML to XMLStreamWriter?

后端 未结 3 1783
不知归路
不知归路 2021-01-06 01:31

I have a number of small XML chunks, that should be embedded in one big XML as child elements. Is there any way to write these chunks to XMLStreamWriter without

3条回答
  •  天涯浪人
    2021-01-06 01:59

    woodstox has a stax implementation and their XMLStreamWriter2 class has a writeRaw() call. We have the same need and this gave us a very nice solution.

提交回复
热议问题