• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

creating xml suing jsp

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

I am developing an application in which i have to
1.insert values into database from xml
2.create xml using database values

in that i am successfull with first one , now i have to create an Xml file which is from all database tables...?

can u please your ideas with me...

bye...
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sunesh,

i am not very much clear with u r second option ie u want to embed the database data from all tables into a xml file or all the data from a single table into a xml file.

the approach would be to use DOM to create a xml file and embed each value the way u want.

or try to build the xml file using the stringbuffer and manipulating the strings and finally write into a file using java.io
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sunesh,

You can use SAX or DOM parsers for capturing data from database and converting them into XML file.

In your case, I would suggest you to go for SAX parser since you are dealing with Structured data (data generated from SQL).

You may find this article useful to startwith.

Regards,
~Krithika
 
Sunesh Kumar
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

Your suggestions helped me a lot
Thanks yaar

Bye
 
reply
    Bookmark Topic Watch Topic
  • New Topic