title: Format KML files in Eclipse
body: <p>I am using some KML files in an Android project and they are really, really poorly formatted so I wanted to use the format method, ctrl+shift+F but this did nothing. I tried adding the *.kml extension to to XML in Content Types under Preferences->General->Content Types and under Preferences->XML->XML Catalog I added two User Specified Entries corresponding to the schemaLocations in the kml file.</p>
  
  <pre><code>Entry element:      URI
  Location:           /home/tstewart/Development/eclipse/kml22gx.xsd
  URI:                file:/home/tstewart/Development/eclipse/kml22gx.xsd
  Key type:           Namespace name
  Key:                http://www.google.com/kml/ext/2.2
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Entry element:      URI
  Location:           /home/tstewart/Development/eclipse/ogckml22.xsd
  URI:                file:/home/tstewart/Development/eclipse/ogckml22.xsd
  Key type:           Namespace name
  Key:                http://www.opengis.net/kml/2.2
  </code></pre>
  
  <p>and the header info in the kml file was:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd http://www.google.com/kml/ext/2.2 http://code.google.com/apis/kml/schema/kml22gx.xsd"&gt;
  </code></pre>
  
  <p>I have never really done this before so I am not sure what I am missing and the few answers I have seen about this did not seem to help.</p>