Xml Beautifier/Formatter
Max preserve newlines
Number of line-breaks to be preserved in one chunk.
Original code
<root>
    <node1>
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
            <content>Hello World!</content>
        <!--Line feed-->
    </node1>
    <!--Line feed-->
</root>
<!--Line feed-->
0
<root>
    <node1>
        <content>Hello World!</content>
    </node1>
</root>
5
<root>
    <node1>
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <content>Hello World!</content>
        <!--Line feed-->
    </node1>
    <!--Line feed-->
</root>
<!--Line feed-->
10
<root>
    <node1>
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <!--Line feed-->
        <content>Hello World!</content>
        <!--Line feed-->
    </node1>
    <!--Line feed-->
</root>
<!--Line feed-->
Indent comments
Determines whether comments should be indented.
Original code
<?xml version="1.0" encoding="UTF-8"?>

<project>
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.onlinetoolsdev</groupId>
    <artifactId>demo</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <name>demo</name>
<!-- FIXME change it to the project's website -->
    <url>http://www.example.com</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

<!-- dependencies -->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
true
<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.onlinetoolsdev</groupId>
    <artifactId>demo</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>demo</name>
    <!-- FIXME change it to the project's website -->
    <url>http://www.example.com</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
    <!-- dependencies -->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
false
<?xml version="1.0" encoding="UTF-8"?>
<project>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.onlinetoolsdev</groupId>
    <artifactId>demo</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>demo</name>
<!-- FIXME change it to the project's website -->
    <url>http://www.example.com</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
<!-- dependencies -->
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.11</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
Top