Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F00E19FB8B8 for ; Mon, 7 May 2007 10:26:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 38159-05 for ; Mon, 7 May 2007 10:25:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from beaver.fastcrypt.com (beaver.fastcrypt.com [64.7.141.17]) by postgresql.org (Postfix) with ESMTP id 6EC3A9FB8B2 for ; Mon, 7 May 2007 10:26:04 -0300 (ADT) Received: from [192.168.1.14] (dcdsl.ebox.com [64.7.143.116]) by beaver.fastcrypt.com (Postfix) with ESMTP id 01F0F1580668 for ; Mon, 7 May 2007 09:32:39 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: List From: Dave Cramer Subject: implementing SQLXML Date: Mon, 7 May 2007 09:26:10 -0400 X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/33 X-Sequence-Number: 17023 I took a run at implementing SQLXML in jdbc4. I have a question about the getSource method. It appears that the interface Source implements only two methods which by themselves aren't very helpful. There are currently 4 concrete classes that implement the Source interface, but they seem quite different. It would appear that the driver will have to do public Source getSource(Class source) { if instanceof DOMSource return new DOMSource if instanceof JAXBSource return new JAXBSource ..... } Does this make sense ? Dave