Help: Where can find "JDBCSAXUtil"
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
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
thanks<br /> Lucida Lee
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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?
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?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lucida Lee
Greenhorn
Posts: 4
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
and I download the code in this website
website
http://www.bhp.com.cn/download/3572.zip
thanks<br /> Lucida Lee
Lucida Lee
Greenhorn
Posts: 4
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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 !!
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 !!
thanks<br /> Lucida Lee
Lasse Koskela
author
Posts: 11962
5
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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".
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".
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lucida Lee
Greenhorn
Posts: 4
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
thanks, I'll try 
thanks<br /> Lucida Lee
| 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 |






