I am writing a java program using eclipse and jdk1.5.0_03. If I need to create XML files it sounds like my only option is to use the DOM api (i.e. import org.w3c.dom.*) ?
Yes, you can use DOM to create XML files. However, since XML files are really just text files, you can write them using the IO classes. As long as the text you write to the file is valid XML you will end up with a valid XML file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.