The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 What's New in JDBC 4.0?
Subject:  Bad example for SQLXML
Date:  2007-05-25 04:58:43
From:  jukka_zitting


Your example for getting an SQLXML column and building a DOM tree for it would work just as well with a normal BLOB column. The really powerful mechanism (as explained in the SQLXML javadocs) is:

DOMSource domSource = sqlxml.getSource(DOMSource.class);
Document document = (Document) domSource.getNode();

 Feed java.net RSS Feeds