xmlファイルはインデントに注意

Tomcatで認証機能の実装をしているところで、

libexec/conf/server.xml

xmlファイルを設定している。
Realmがデフォルトではコメントアウトされていて、戻す時にインデントがずれてしまって認証がうまくできなかった。

具体的には以下のところ

<Engine name="Catalina" defaultHost="localhost">
 <!--    <Realm  className="org.apache.catalina.realm.JDBCRealm"
         driverName="org.gjt.mm.mysql.Driver"
      connectionURL="jdbc:mysql://localhost/authority"
     connectionName="test" connectionPassword="test"
          userTable="users" userNameCol="user_name" userCredCol="user_pass"
      userRoleTable="user_roles" roleNameCol="role_name" /> -->

 <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
    <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
    -->
 <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
    <!-- <Realm className="org.apache.catalina.realm.LockOutRealm"> -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        
 <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>

Engineから見た時に、2つ分インデントを下げる。