Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JDK 1.5.0_03

Status
Not open for further replies.

aswolff

Programmer
Jul 31, 2006
100
0
0
US
Hello.

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.*) ?

Sax api is only for reading XML files?


Thanks.
 
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.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top