• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to construct XML file  RSS feed

 
Viswa
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fetch the values from database and construct that values in a XML format.
Using java.util.Vector.
plz help me to do this
Viswa
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

using java.util.Vector

Why? If this requirement is "because my assignment requires me to do it this way" then I'm not going to tell you. However, I would suggest you look at the JAXP and SAX sections of the J2EE Tutorial. I'd also suggest you check out the JDBC Tutorial. I'd also check your RDBMS documentation to see its capabilities for returning results as XML anyway (as some now do).
[ September 01, 2004: Message edited by: Paul Sturrock ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excllent suggestion Paul!

Check out hte links that Paul suggested and see what you can come up with. We're not ones to do your homework for you. But if you'd like to give it a try, we'd be more than happy to confirm that you're on the right path.
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Visva,
You can aslo take a look at Castor (www.castor.org)
Manoj
 
Rickard Sundin
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also check out the dom4j framework (http://www.dom4j.org/).

/Rickard

PS.
As a bonus excercise, read the documentation on java.util.Vector and java.util.ArrayList and see if you can

A. Find the basic difference between the two classes, and

B. Decide which of them is the most suitable for you need.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!