axel/src/main/java/fr/xgouchet/xmleditor/core/actions/SaveXmlAction.java
private void writeDocDecl(final @NonNull XmlDocumentDeclaration docDecl) throws IOException {
            mWriter.write("<?xml");
            mWriter.write(" version=\"");
            mWriter.write(docDecl.getVersion());
            mWriter.write("\"");

            String encoding = docDecl.getEncoding();
            if (encoding != null) {
                mWriter.write(" encoding=\"");
                mWriter.write(docDecl.getEncoding());
                mWriter.write("\"");
            }

            if (docDecl.hasAttribute(XmlDocumentDeclaration.STANDALONE)) {
                mWriter.write(" standalone=\"");
                mWriter.write(docDecl.isStandalone() ? XmlDocumentDeclaration.STANDALONE_YES : XmlDocumentDeclaration.STANDALONE_NO);
                mWriter.write("\"");
            }
            mWriter.write("?>\n");
        }
/**
         * @param docDecl the document declaration to write
         * @throws IOException
         */
@param docDecl the document declaration to write
@throws IOException
@param docDecl the document declaration to write @throws IOException
private void writeDocDecl(final @NonNull XmlDocumentDeclaration docDecl) throws IOException {
            mWriter.write("<?xml");
            mWriter.write(" version=\"");
            mWriter.write(docDecl.getVersion());
            mWriter.write("\"");
            String encoding = docDecl.getEncoding();
            if (encoding != null) {
                mWriter.write(" encoding=\"");
                mWriter.write(docDecl.getEncoding());
                mWriter.write("\"");
            }
            if (docDecl.hasAttribute(XmlDocumentDeclaration.STANDALONE)) {
                mWriter.write(" standalone=\"");
                mWriter.write(docDecl.isStandalone() ? XmlDocumentDeclaration.STANDALONE_YES : XmlDocumentDeclaration.STANDALONE_NO);
                mWriter.write("\"");
            }
            mWriter.write("?>\n");
        }
private void writeDocDecl ( final @ NonNull XmlDocumentDeclaration docDecl ) throws IOException { mWriter . write ( "<?xml" ) ; mWriter . write ( " version=\"" ) ; mWriter . write ( docDecl . getVersion ( ) ) ; mWriter . write ( "\"" ) ; String encoding = docDecl . getEncoding ( ) ; if ( encoding != null ) { mWriter . write ( " encoding=\"" ) ; mWriter . write ( docDecl . getEncoding ( ) ) ; mWriter . write ( "\"" ) ; } if ( docDecl . hasAttribute ( XmlDocumentDeclaration . STANDALONE ) ) { mWriter . write ( " standalone=\"" ) ; mWriter . write ( docDecl . isStandalone ( ) ? XmlDocumentDeclaration . STANDALONE_YES : XmlDocumentDeclaration . STANDALONE_NO ) ; mWriter . write ( "\"" ) ; } mWriter . write ( "?>\n" ) ; }
@param docDecl the document declaration to write
 @throws IOException
@param docDecl the document declaration to write @throws IOException