Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default How to read attributes and values in a xml file using servlet

    Hi all,
    I am a new member!! Could you please tell me as to how I can get the parameters and the values in an xml file using a servlet?

  2. #2
    dmacvittie is offline Member
    Join Date
    Aug 2007
    Posts
    30
    Rep Power
    0

    Default

    Hi Pragathi,

    For small files with well defined and rarely changing fields, you should probably just write a parser.
    For larger or more dynamic XML, your best bet is to look at Xerces.

    Xerces2 Java Parser Readme

    Hope that gets you started.

    Don.
    Don MacVittie F5 Networks - DevCentral

Similar Threads

  1. [SOLVED] How to read a file and compare Array values
    By DonCash in forum Advanced Java
    Replies: 2
    Last Post: 04-02-2008, 03:22 PM
  2. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  3. Read file
    By tajinvillage in forum Threads and Synchronization
    Replies: 0
    Last Post: 01-29-2008, 10:10 AM
  4. Replies: 0
    Last Post: 01-20-2008, 07:07 AM
  5. Getting HTML form values in Servlet
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-17-2007, 09:13 PM

Posting Permissions

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