axel/src/main/java/fr/xgouchet/xmleditor/core/actions/SaveXmlAction.java
private void writeElementOpen(final @NonNull XmlElement element, final boolean isLeaf) throws IOException {
            mWriter.write("<");
            mWriter.write(element.getQualifiedName());

            for (XmlAttribute attribute : element.getAttributes()) {
                mWriter.write(" ");
                mWriter.write(attribute.getQualifiedName());
                mWriter.write("=\"");
                mWriter.write(attribute.getValue());
                mWriter.write("\"");
            }

            if (isLeaf) {
                mWriter.write("/>\n");
            } else {
                mWriter.write(">\n");
            }

        }
/**
         * @param element the element to write
         * @throws IOException
         */
@param element the element to write
@throws IOException
@param element the element to write @throws IOException
private void writeElementOpen(final @NonNull XmlElement element, final boolean isLeaf) throws IOException {
            mWriter.write("<");
            mWriter.write(element.getQualifiedName());
            for (XmlAttribute attribute : element.getAttributes()) {
                mWriter.write(" ");
                mWriter.write(attribute.getQualifiedName());
                mWriter.write("=\"");
                mWriter.write(attribute.getValue());
                mWriter.write("\"");
            }
            if (isLeaf) {
                mWriter.write("/>\n");
            } else {
                mWriter.write(">\n");
            }
        }
private void writeElementOpen ( final @ NonNull XmlElement element , final boolean isLeaf ) throws IOException { mWriter . write ( "<" ) ; mWriter . write ( element . getQualifiedName ( ) ) ; for ( XmlAttribute attribute : element . getAttributes ( ) ) { mWriter . write ( " " ) ; mWriter . write ( attribute . getQualifiedName ( ) ) ; mWriter . write ( "=\"" ) ; mWriter . write ( attribute . getValue ( ) ) ; mWriter . write ( "\"" ) ; } if ( isLeaf ) { mWriter . write ( "/>\n" ) ; } else { mWriter . write ( ">\n" ) ; } }
@param element the element to write
 @throws IOException
@param element the element to write @throws IOException