Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create XML files using Java Language

 
Ramesh Shanmugam
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to create XML files using Java Language??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can create all elements and attributes yourself, and write them to a file, or you can construct a DOM object in memory, and have it write itself to a file. There are various DOM-like APIs (DOM itself, XOM, JDOM, dom4j).

You can find in introduction to Java XML processing here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic