Is it possible to write an xml chunk directly using StAX? I know I can use an XMLStreamWriter with writeStartElement, writeCharacters and writeEndElement but there is no flexibility for xml strings.
How do I get around this limitation considering I have to write a large xml file (> 100 MB).
I have arbitrary xml strings like this, sometimes with a fairly complex structure, that need to be added together with some other details to form the final xml file. This is just an example not the actual xml string.
<name>Strawberry Belgian Waffles</name>
Light Belgian waffles covered with strawberries and whipped cream