Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Converting database results into xml

Hi,

I want to generate xml on the fly from database query result using Java.
for e.g. when i pass in query ; select * from emp; it returns result in ResultSet
and i want to create a xml from ResultSet result. Does anyone know how to
achieve this using Java?

Any pointers or help would be appreciated.

Thanks,
[347 byte] By [Java_XML] at [2007-11-9 15:28:59]
# 1 Re: Converting database results into xml
Google is a wonderful thing.

http://www.dannyayers.com/old/code/

"Java_XML" <javaxmlsoapdev@yaho.com> wrote:
>
>Hi,
>
>I want to generate xml on the fly from database query result using Java.
>for e.g. when i pass in query ; select * from emp; it returns result in
ResultSet
>and i want to create a xml from ResultSet result. Does anyone know how to
>achieve this using Java?
>
>Any pointers or help would be appreciated.
>
>Thanks,
MarkN at 2007-11-11 23:29:37 >