We must make sure parent StreamWriterFacade emits any started
open elements to the writer, otherwise can end up with weird
XML, which suddenly emits a self-closing element.
Issue a flushElement() before writing the data.
JIRA: YANGTOOLS-1002
Change-Id: Ib3933ddad22e490782a144306b8df10a033d74ee
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
}
void emitNormalizedAnydata(final NormalizedAnydata anydata) throws XMLStreamException {
+ flushElement();
try {
anydata.writeTo(XMLStreamNormalizedNodeStreamWriter.create(writer, anydata.getSchemaContext(),
new SingleChildDataNodeContainer(anydata.getContextNode())));