[jdom-interest] reading block of html in an xml file

Mark Ayad mayad at ogilvy.net
Thu Apr 19 08:44:45 PDT 2001

Hi All,

I have an xml file where an element conatins some well formatted 
html. At the moment I comment out the html so as I can read the 
block of html in one go.

<site id="">
<header><!-- well formatted html --></header>

My question is: if instead between the <header></header> tag is just well 
formatted html ie xhtml can the chunk of html be read  as a block straight 
into a string ?


<site id="">
<header><head><title>jdom is excellent</title></head></</header>

 extract -> ...<head><title>jdom is excellent</title></head>...

is this possible with the jdom api ?

thank everyone


More information about the jdom-interest mailing list