title: How to create the tag <?xml version="1.0" encoding="ISO-8859-1"?> with XMLOption (XMLBeans)?
body: <p>How can i create the header of a XML Document, which was created by using XML Beans and XMLOptions?</p>
  
  <p>I have developed this kind of java code to the right encoding and deleted unnecessary namespaces:</p>
  
  <pre><code>final Map&lt;String, String&gt; implicitNamespaces = new HashMap&lt;String, String&gt;();
  implicitNamespaces.put("", "http://www.test.com/results");
  XmlOptions xmlOptions = new XmlOptions();
  xmlOptions.setSaveImplicitNamespaces(implicitNamespaces);
  xmlOptions.setCharacterEncoding("ISO-8859-1");
  xmlOptions.setSavePrettyPrint();
  </code></pre>
  
  <p>But how can i create the header  by using XMLBeans and XMLOptions? Is it the only way to set it hard coded? If there is´t a method to create this tag?</p>