title: What is the best way to create XML files in Java?
body: <p>We are presently using dom4j to create XML files. However, I'm guessing there's something better now. If we are Java 1.6 or later, what is the best (fastest when running, simple to use) class(es) to use when writing out an XML file.</p>
  
  <p>I do not need to build a DOM and then write the entire DOM. I just need something that will write out the elements/attributes as I pass them to the class.</p>
  
  <p>thanks - dave</p>