• 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 ...
Marshals:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Help: Where can find "JDBCSAXUtil"

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
as I want to build XML Document From Database using SAX,
I know to get it by :
try {
InputSource dbis
= JDBCSAXUtil.setupSourceFromProperties(dbPropFile);
transform(_xslProcessor,
Driver.fileInputSource(new File(xslFile)), dbis);
}
My Problen is where to get the class "JDBCSAXUtil"
thanks
Lucida Lee
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I assume you've seen some example code using this "JDBCSAXUtil" class, right?
It's not part of any standard library, and I have a gut feeling that it might not be part of any popular open source project either. Typically, people write these utility classes themselves and this might very well be one of those cases.
Could you give any details about the context in which you encountered this JDBCSAXUtil class?
 
Lucida Lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are very right, this is the book <<Instant XML/XSL/Java>>,
and I download the code in this website
website
http://www.bhp.com.cn/download/3572.zip
 
Lucida Lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the sample is very hard to work ,
can u give me some Completed Samples that
using XML/XSL/JAVA/JDBC to form a report from the database, or simply
query some table and translate the result into html/xhtml,
thank you very !!
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not aware of a complete example of what you're describing. However, I'd like to remind you that "Divide and Conquer" does work and you might want to split the task into:
1) Read data from database using JDBC into a ResultSet
2) Convert the ResultSet into XML
3) Write an XSL stylesheet for transforming the XML to HTML
4) Write the Java code to do 1-3 in a row
For 2), you might want to do a search on this forum with keywords like "XML" and "ResultSet".
 
Lucida Lee
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, I'll try
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic