JsonXMLStreamWriter writer = createXmlStreamWriter(result, new QName("alice"));
writer.writeStartDocument();
writer.writeStartElement("alice");
writer.writeStartArray("bob");
writer.writeStartElement("bob");
writer.writeCharacters("charlie");
writer.writeEndElement();
writer.writeStartElement("bob");
writer.writeCharacters("david");
writer.writeEndElement();
writer.writeEndArray();