title: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 (test-xml.clj:6)
body: <p>I'm trying to write a function in clojure that prints out xml using clojure.xml/emit.</p>
  <pre><code>(ns test.xml.emit
    (:use clojure.core)
    (:require [clojure.xml :as xml]))
  
  (defn testemit []
    (xml/emit {:tag :web-app
               :attrs {:xmlns:xsi &quot;http://www.w3.org/2001/XMLSchema-instance&quot;
                       :xmlns &quot;http://java.sun.com/xml/ns/javaee&quot;
                       :xmlns:web &quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
                       :xsi:schemaLocation &quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
                       :id &quot;Foo&quot;
                       :version &quot;1.0&quot;},
               :content [{:display-name &quot;FooBar+&quot;}
                         {:listener
                          {:listener-class &quot;com.example.server.Main&quot;}}
                         {:filter
                          {:filter-name &quot;guiceFilter&quot;}
                          {:filter-class &quot;com.google.inject.servlet.GuiceFilter&quot;}}
                         {:filter-mappings
                          {:filter-name &quot;guiceFilter&quot;}
                          {:url-pattern &quot;/*&quot;}}]}))
  </code></pre>
  <p>I know what the exception means, but I'm not sure howit relates to my code. Could someone please point me in the right direction?<br />
  The full stack trace is available at <a href="https://gist.github.com/1838248" rel="nofollow noreferrer">https://gist.github.com/1838248</a></p>
  <p>Thank you for your time and consideration</p>