Skip to content

How to write a JAVA servlet that takes input from XML?

Kindly give sample code of a small Java servlet that takes input from an XML document. The output should be in HTML. Please help.

4 Comments

  1. Albin Joseph wrote:

    You need tp parse that XML. For that you can either go for SAX or DOM. Refer
    http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html

    http://java.sun.com/j2se/1.4.2/docs/guide/xml/jaxp/index.html

    Saturday, January 16, 2010 at 3:23 pm | Permalink
  2. efremescu wrote:

    Here’s a little tutorial:
    http://xml.apache.org/xalan-j/samples.html

    Saturday, January 16, 2010 at 3:23 pm | Permalink
  3. Mariam wrote:

    You made some good points there. I did a search on the topic and found most people will agree with your blog.

    Saturday, November 5, 2011 at 9:34 am | Permalink
  4. Garnett wrote:

    Great articles & Nice a site….

    Friday, November 25, 2011 at 12:27 am | Permalink

Post a Comment

Your email is never published nor shared.