How to write unescaped XML to XMLStreamWriter?

后端 未结 3 1860
不知归路
不知归路 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:54

    final XMLOutputFactory streamWriterFactory = XMLOutputFactory.newFactory();
    streamWriterFactory.setProperty("escapeCharacters", false);
    

    From here

提交回复
热议问题