• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

ResultSet into XML-File ?

Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm a newbie in xml.
can i convert a ResultSet into an XML-File with java and any package and HOW ? (a little example,please)
i want to convert the complete ResultSet in XML and the other way a complete XML-File with the same naming-rules to an ResultSet or database.
what is the right method of resolution. is any tool available ?

thanks for help
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
without having used it, I accidentally came across this

There's no limit to the potential builders. For example, now that Xerces has the Xerces Native Interface (XNI) to operate at a lower level than SAX, it may make sense to write an XNIBuilder to support some parser knowledge not exposed via SAX. One popular builder that has been contributed to the JDOM project is the ResultSetBuilder. It takes a JDBC result set and creates an XML document representation of the SQL result, with various configurations regarding what should be an element and what should be an attribute.

in a text about jdom.
from oracle site
could be nice starting point for own research.
And then we all jump out and yell "surprise! we got you this tiny ad!"
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic