Results 1 to 8 of 8
  1. #1
    kkji is offline Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    0

    Default How to create xml file using servlets from database data?

    hi all,
    How to create xml file using servlets from database data?

    Please guide how can I create xml file which is based on dtd to create database item using Java program.

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,040
    Rep Power
    20

    Default

    That is so short on information as to be next to useless.

    What are you trying to do?
    Where is the data you are turning into XML?
    What does "create database item" mean?

  3. #3
    kkji is offline Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    0

    Default

    => I have to create a xml fiel
    => data is database from their data has to be populated in xml file.
    => database field value is mean by database item.

  4. #4
    kkji is offline Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    0

    Default

    => I have to create a xml file
    => data is database from their data has to be populated in xml file.
    => database field value is mean by database item.

  5. #5
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,040
    Rep Power
    20

    Default

    I have a feeling this is too large (or vague) a thing for someone to deal with here.

    All I can say is, get the data from the database and build your XML based on that and the DTD.
    Oracle underdtands XML, so if you were using Oracle you might be able to do almost all this in that rather than Java.

  6. #6
    kkji is offline Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    0

    Default

    I have ms-sql server.

  7. #7
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,040
    Rep Power
    20

    Default

    Then either see if MS-SQL does it, or hand craft it based on your DTD.

  8. #8
    kkji is offline Member
    Join Date
    Aug 2011
    Posts
    54
    Rep Power
    0

    Default

    Thanks, do we have any good package for xml (like dom or sax). Please suggest?

Similar Threads

  1. Replies: 2
    Last Post: 03-29-2011, 12:08 PM
  2. Replies: 2
    Last Post: 03-25-2011, 02:36 PM
  3. Create a form, input some data and save to file
    By cselic in forum AWT / Swing
    Replies: 5
    Last Post: 05-07-2010, 12:28 PM
  4. Replies: 1
    Last Post: 12-03-2009, 07:03 AM
  5. Replies: 3
    Last Post: 08-05-2008, 03:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •