+ if (data instanceof AnyXmlNode) {
+ try {
+ writeElements(xmlWriter, nnWriter,
+ (ContainerNode) NetconfUtil.transformDOMSourceToNormalizedNode(schemaCtx,
+ ((AnyXmlNode)data).getValue()).getResult());
+ } catch (XMLStreamException | URISyntaxException | SAXException | ParserConfigurationException e) {
+ throw new IOException("Cannot write anyxml", e);
+ }
+ } else {
+ writeElements(xmlWriter, nnWriter, (ContainerNode) data);
+ }