This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 12761
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.

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