title: Create XML file using java
body: <p>How to create a xml file and save it in some place in my machine using java..there are attributes also include in the xml file? I have found org.w3c.dom.Document but having problems with creating attributes for elements and save the xml file.</p>
  
  <p>Thank You.</p>