Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing XML using JAVA  RSS feed

 
ramnna jain
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write XML using Java code...
 
Sultan Khadar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Jain.. it is possible.. see the below code snippet
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways to do that, the easiest being the BufferedWriter, OutputStreamWriter and FileOutputStream classes used together.
 
ramnna jain
Ranch Hand
Posts: 129
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sultan & Ulf..

What is SAX & where to use it?

Can we use it to write XML using JAVA(SAX API).... ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do people ask these general questions here when a Google search will find answers faster

Google might turn up this FAQ page here at the ranch as a starting point.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!