axel/src/main/java/fr/xgouchet/xmleditor/core/actions/SaveXmlAction.java
private void writeNodeContent(final @NonNull TreeNode<XmlContent> node) throws IOException {
            XmlContent content = node.getData();
            switch (content.getType()) {
                case XmlUtils.XML_DOCUMENT_DECLARATION:
                    writeDocDecl((XmlDocumentDeclaration) content);
                    break;
                case XmlUtils.XML_DOCTYPE:
                    writeDocType((XmlDocTypeDeclaration) content);
                    break;
                case XmlUtils.XML_ELEMENT:
                    writeElementOpen((XmlElement) content, node.isLeaf());
                    break;
                case XmlUtils.XML_COMMENT:
                    writeComment((XmlComment) content);
                    break;
                case XmlUtils.XML_TEXT:
                    writeText((XmlText) content);
                    break;
                case XmlUtils.XML_CDATA:
                    writeCData((XmlCData) content);
                    break;
                case XmlUtils.XML_PROCESSING_INSTRUCTION:
                    writeProcessingInstruction((XmlProcessingInstruction) content);
                    break;
                case XmlUtils.XML_DOCUMENT:
                    // Ignore
                    break;
            }
        }
/**
         * @param node the node being written
         * @throws IOException
         */
@param node the node being written
@throws IOException
@param node the node being written @throws IOException
private void writeNodeContent(final @NonNull TreeNode<XmlContent> node) throws IOException {
            XmlContent content = node.getData();
            switch (content.getType()) {
                case XmlUtils.XML_DOCUMENT_DECLARATION:
                    writeDocDecl((XmlDocumentDeclaration) content);
                    break;
                case XmlUtils.XML_DOCTYPE:
                    writeDocType((XmlDocTypeDeclaration) content);
                    break;
                case XmlUtils.XML_ELEMENT:
                    writeElementOpen((XmlElement) content, node.isLeaf());
                    break;
                case XmlUtils.XML_COMMENT:
                    writeComment((XmlComment) content);
                    break;
                case XmlUtils.XML_TEXT:
                    writeText((XmlText) content);
                    break;
                case XmlUtils.XML_CDATA:
                    writeCData((XmlCData) content);
                    break;
                case XmlUtils.XML_PROCESSING_INSTRUCTION:
                    writeProcessingInstruction((XmlProcessingInstruction) content);
                    break;
                case XmlUtils.XML_DOCUMENT:
                    break;
            }
        }
private void writeNodeContent ( final @ NonNull TreeNode < XmlContent > node ) throws IOException { XmlContent content = node . getData ( ) ; switch ( content . getType ( ) ) { case XmlUtils . XML_DOCUMENT_DECLARATION : writeDocDecl ( ( XmlDocumentDeclaration ) content ) ; break ; case XmlUtils . XML_DOCTYPE : writeDocType ( ( XmlDocTypeDeclaration ) content ) ; break ; case XmlUtils . XML_ELEMENT : writeElementOpen ( ( XmlElement ) content , node . isLeaf ( ) ) ; break ; case XmlUtils . XML_COMMENT : writeComment ( ( XmlComment ) content ) ; break ; case XmlUtils . XML_TEXT : writeText ( ( XmlText ) content ) ; break ; case XmlUtils . XML_CDATA : writeCData ( ( XmlCData ) content ) ; break ; case XmlUtils . XML_PROCESSING_INSTRUCTION : writeProcessingInstruction ( ( XmlProcessingInstruction ) content ) ; break ; case XmlUtils . XML_DOCUMENT : break ; } }
@param node the node being written
 @throws IOException
@param node the node being written @throws IOException
// Ignore