title: JAXB - XML header ignored
body: <p>I am using the following code to create XML using JAXB, but when the XML is created the XML header  is not included.</p>
  
  <pre><code>OutputStream file = new FileOutputStream("E:\\file.xml");
  JAXBContext jaxbContext = JAXBContext.newInstance(F6207.class);
  javax.xml.bind.Marshaller jaxbMarshaller = jaxbContext.createMarshaller();  
  jaxbMarshaller.setProperty(javax.xml.bind.Marshaller.JAXB_ENCODING, "UTF-8");
  jaxbMarshaller.setProperty(javax.xml.bind.Marshaller.JAXB_FRAGMENT, Boolean.FALSE);
  jaxbMarshaller.setProperty(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true); 
  jaxbMarshaller.marshal(f6207, file);
  </code></pre>
  
  <p>How can I get the below header into my XML file?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>