[jdom-interest] JDOMSource and Oracle's jaxp classes

Frank Sauer Frank.Sauer at trcinc.com
Wed Aug 28 14:34:59 PDT 2002


When I try to do an XSL transformation on a jdom tree
using Oracle's xml classes from xmlparserv2.jar (includes
the javax.xml.transform api) I get the following:

java.lang.ClassCastException: org.jdom.transform.JDOMSource$DocumentReader
	at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:201)
	at com.trcinc.fpl.commands.Transform.transform(Transform.java:65)
	at com.trcinc.fpl.commands.Transform.process(Transform.java:46)
	at com.trcinc.fpl.commands.FPLNode.recurse(FPLNode.java:163)

The same code works with xalan/crimson as well as saxon/aelfred, anyone
seen this and knows a solution?

Thanks,

Frank

-----Original Message-----
From: Hushagen, Michael E. [mailto:MEHushagen at fedins.com]
Sent: Wednesday, August 28, 2002 4:24 PM
To: 'jdom-interest at jdom.org'
Subject: [jdom-interest] XPath support


This question may be more for Jason Hunter and/or Brett McLaughlin.
We are currently investigating whether to use DOM or JDOM in our
transactional XML-based web application.  Many of our functions involve
searching, removing, and replacing elements and their text values.
Naturally, using Xpath is much easier than coding a bunch of recursive
search methods. We briefly experimented with using DOM's built-in Xpath
support, and also experimented with JDOM using Jaxen as it's Xpath support.
JDOM is much more intuitive to code in as a Java developer, but we're a
little worried about using a third-party Xpath solution.  Also, the
JDOM/Jaxen combo seems slower compared to DOM.  We have only run a few small
tests so far though... 
Any thoughts on this?  Will JDOM have native Xpath support any time soon?

Thanks,
 -Mike Hushagen
__________________________________________________________________
This information is intended only for the use of the addressee(s) and may contain privileged, confidential or proprietary information.  If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, displaying, copying, or use of this information is strictly prohibited.  If you have received this communication in error, please notify us immediately at Administrator at fedins.com or by telephone at (800) 533-0472, and return the information to the sender with all copies deleted and destroyed.  Thank you.

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list