aspose file tools*
The moose likes JDBC and the fly likes How can I Read a XML file? Please Help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How can I Read a XML file? Please Help me" Watch "How can I Read a XML file? Please Help me" New topic
Author

How can I Read a XML file? Please Help me

Ravi Pydi
Greenhorn

Joined: Sep 01, 2002
Posts: 25
Hi Friends,
My task is to read an XML file in J2EE environment. Then send the data into a database. I was told that we may have to use one of the parsers.
If somebody has got a sample code, please let me know.
The code can be on any of the following scenarios.
Scenario1: Create a Javabean(XML_To_Oracle) in J2EE that can take the XML message as input and write the XML PO data back to a Oracle DB.
Scenario2: Create a Javabean(XML_To_DB2) in J2EE that can take the XML message as input and write the XML PO data back to a DB2.
Scenario3: Create a Javabean(XMLRouterBean) in J2EE that can take the XML message as input and depending on the router string in the XML Message invokes either the XML_TO_Oracle Bean or the XML_TO_DB2 or Invokes Both.
Thanking You,
Ravi Pydi and the team
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
please DO NOT CROSSPOST YOUR MESSAGE IN DIFFERENT TOPICS. It's so annoying !!


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I Read a XML file? Please Help me