atom feed14 messages in org.jdom.jdom-interest[jdom-interest] Content missing after...
FromSent OnAttachments
LarsenNov 7, 2012 8:40 am 
LarsenNov 7, 2012 8:45 am 
Rolf LearNov 7, 2012 10:12 am 
Rolf LearNov 7, 2012 10:30 am 
LarsenNov 7, 2012 1:22 pm 
Rolf LearNov 7, 2012 1:48 pm 
LarsenNov 7, 2012 2:47 pm 
Rolf LearNov 7, 2012 4:07 pm 
LarsenNov 8, 2012 1:20 am 
Rolf LearNov 8, 2012 3:35 am 
LarsenNov 8, 2012 3:53 am 
LarsenNov 8, 2012 4:08 am 
Gary GregoryNov 8, 2012 4:46 am 
LarsenNov 8, 2012 5:08 am 
Subject:[jdom-interest] Content missing after conversion from W3C Element to JDOM2 Element
From:Larsen (lars@web.de)
Date:Nov 7, 2012 8:40:41 am
List:org.jdom.jdom-interest

Hi,

I am quite a JDOM2 newbie and noticed strange/incorrect behaviour when converting a W3C-Element to a JDOM-Element. Though, I can´t imagine that this really is a bug as I guess that somebody else would have noticed and probably fixed this before. Also, I couldn´t find other people having this problem. So, at the moment I would rather think that I am doing something wrong here.

This is the part that I want to convert from W3C to JDOM stored in the variable "table":

<tbody> <tr id="0"> <td id="0"> <img>RTEmagicC_pdf_icon.png.png</img> </td> </tr> </tbody>

This is my code: DOMBuilder domBuilder = new DOMBuilder(); Element jdomTable = domBuilder.build(table).detach();

After this conversion, I have a JDOM element with the correct structure, but the content from the img-tag is missing. I fixed this problem by importing the JDOM source into my project and changing this method:

public org.jdom2.Text build(org.w3c.dom.Text text) { // BUG ??? // return factory.text(text.getTextContent()); return factory.text(text.getNodeValue()); }

Could anyone please shed some light if this is a bug or a mistake on my side?

Lars