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

Jason Hunter jhunter at acm.org
Thu May 10 16:56:52 PDT 2001


I suspect you have DOM Level 1 in your classpath.  Check the FAQ for
guidance.  http://jdom.org/docs/faq.html.

-jh-

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());
> }
> 
> _______________________________________________
> 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