[jdom-interest] JDOM and text outside tags

Jacques-Albert De Blasio jacquesalbert.deblasio at toshiba.co.jp
Wed Oct 22 18:47:50 PDT 2003


Hi again,

I would like to add that I tried to simply use the getText() method on 
the <SMALL> element and it works... but the text returned becomes 
"some_textsome_other_text". Is there any way to fetch those two strings 
one after the other?

Regards,

Jack

Jacques-Albert De Blasio wrote:

> Hi all,
>
> I have a problem with JDOM and I am sure that one of you JDOM guru 
> could help me out :)
>
> In a program I'm writing, I first fetch HTML pages on the web, tidy 
> them with NekoHTML (JTidy was not sufficient as it could not parse 
> japanese html pages) and then transform the DOM outputed by NekoHTML 
> into JDOM documents.
>
> My problem is the following: in a given page, I have tags such as
>
> <TD>
> <SMALL>
> <IMG src = "..." /> some_text <BR />
> <IMG src =" ..." /> some_other_text <BR />
> </SMALL>
> </TD>
>
> How can I fetch the "some_text" and "some_other_text" ?
>
> Thank you very much for your help,
>
> Jack
>
> _______________________________________________
> 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