[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
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?
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
> <IMG src = "..." /> some_text <BR />
> <IMG src =" ..." /> some_other_text <BR />
> How can I fetch the "some_text" and "some_other_text" ?
> Thank you very much for your help,
> To control your jdom-interest membership:
More information about the jdom-interest