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.
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.
thanks - dave
If you just want to write an XML document having exact control over the creating of elements, attributes and other document components, you may use the XMLStreamWriter from the StAX API.