OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Parsing XML & JSP problems

[ Lists Home | Date Index | Thread Index ]

You don't say what error you get, so it is difficult to determine where
your code fails. The only possible problem I see is enclosing your date
value in quotes. Depending on what database you use, this might not work
if you are inserting the date into a date/time column (as opposed to a
character column).

Perhaps more relevant is that there are a number of products available
for inserting data into a database from an XML document. Using one of
these would save you from having to write most of this code -- you could
wrap one of the Java products in a JavaBean. Furthermore, they would
save you from writing more code each time you want to insert data from a
different XML document -- most of the products are configurable by some
sort of mapping tool.

For a list of products, see:

   http://www.rpbourret.com/xml/XMLDatabaseProds.htm

You'll probably be most interested in middleware and XML-enabled
databases.

-- Ron

Meichun Li wrote:
> 
> Hi,
> 
> I have troubles in Paring XML element into database
> using JSP. The data couldn't be inserted into the table.
> More detail about the questions are as below.The JavaBean class is
> converted from a class that works well for parsing XML.
> Would you please give me some hints or recommend some books/websites
> about parsing XML& JSP for references?
> Thanks a lot in advance!
> 
> -Meichun




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS