Store XML to database  
Author Message
sarath





PostPosted: 2005-6-2 17:31:00 Top

java-programmer, Store XML to database I have some details from a jsp page, that i will store in XML format,
using DOM. I have created this much and now i want to store this XML
file in the database. How to do this ? the xml is available as a stream
in my program.

help of any kind is appreciated

thanks in advance..

sarath

 
TechBookReport





PostPosted: 2005-6-2 19:30:00 Top

java-programmer >> Store XML to database sarath wrote:
> I have some details from a jsp page, that i will store in XML format,
> using DOM. I have created this much and now i want to store this XML
> file in the database. How to do this ? the xml is available as a stream
> in my program.
>
> help of any kind is appreciated
>
> thanks in advance..
>
> sarath
>
Which database? You haven't given any relevant details here.

 
sarath





PostPosted: 2005-6-2 19:47:00 Top

java-programmer >> Store XML to database the database is mySQL and i am using blob datatype so i can store
anything..... i am using jdbc to do the connection to database and i am
using com.mysql.jdbc.Driver

regards

sarath

 
 
TechBookReport





PostPosted: 2005-6-2 22:32:00 Top

java-programmer >> Store XML to database sarath wrote:
> the database is mySQL and i am using blob datatype so i can store
> anything..... i am using jdbc to do the connection to database and i am
> using com.mysql.jdbc.Driver
>
> regards
>
> sarath
>

So what precisely is the problem you're having? Can you connect to the
database? Is it running an insert query or an update query? We aren't
telepathic, people are happy to help with a specific problem but
expecting someone to second guess what you are doing won't get results.

Pan

==================================================================
TechBookReport Java http://www.techbookreport.com/JavaIndex.html