Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes convert of text into xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "convert of text into xml" Watch "convert of text into xml" New topic

convert of text into xml

leela mohan

Joined: Oct 31, 2006
Posts: 13
how to convert a data or text that is obtained from database using servlet into xml
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12681
I suggest you first master the database to xml step OUTSIDE the servlet environment. Once you can write your xml to a Writer or a String, then you can think about doing it in a servlet. A google search for "java xml tutorial" should lead you to a basic tutorial.


Java Resources at
I agree. Here's the link:
subject: convert of text into xml
Similar Threads
Convert xml file to text files using XSLT
Convert text file to XML using DOM parser
How to put clob in org.w3c.dom.Document
how to deliver a massage in a chat program
Passing the JSON Array to the servlet