[jdom-interest] Newbie - w3c.dom.Element to jdom.Element conversion error

Ian Lea ian.lea at blackwell.co.uk
Fri May 11 03:50:29 PDT 2001


I think this is a CLASSPATH issue.  Perhaps the bean method
is running in a different environment with a different version
of xerces.


--
Ian.


Kerry Hew wrote:
> 
> Hi, my code is below.  As a stand-alone app, everything works perfectly.
> But when I throw this into a bean method I get the following error:
> 
> org.jdom.JDOMException: Exception outputting Element meetinglist:
> org.w3c.dom.Document: method
> createElementNS(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
> not found
> 
> I truly do not understand.  Thank you in advance for your help.
> 
> Kerry.
> 
> --------------CODE----------------------------
> try {
>     java.io.File file = new java.io.File("C:/meetings.xml");
>     Document jdomDocument = saxBuilder.build(file);
>     DOMOutputter domOutputter = new DOMOutputter();
>     org.w3c.dom.Element domElement =
> domOutputter.output(jdomDocument.getRootElement());
>     org.jdom.Element jdomElement = domBuilder.build(domElement);
>     start(jdomElement);     //jdomElement is the root <meetinglist>
> }
> catch (JDOMException e) {
>     System.out.println(e.toString());
> }



More information about the jdom-interest mailing list