[jdom-interest] how to add an xml-html docuemnt into an Element

Belli Andrea Andrea.Belli at TILAB.COM
Wed Aug 28 07:15:19 PDT 2002


Hi, 
  I'm using JDOM in my application which extracts HTML content from some
HTML pages and tries to generate an XML file like this one:
 
<response>
<test id ="1">
            <url>www.mysite.com</url>
<HTML-extracted>
<!-here I want to insert the html content -->
</HTML-extracted>
</test>
<test id ="2">
            <url>www.mysite.it</url>
<HTML-extracted>
<!-here I want to insert the html content -->
</HTML-extracted>
</test>
 
</response>
this file is rendered with an XSL file which show the HTML content, how
it was on the original page, so I can't use a CDATA section.
  I parsed the  HTML scratch with Jtidy , so I'm sure the html content
is well done; now I want to put it into a XML Element; how I can do it?
  For example if I use a Document object for the tidied HtML , is there
a way to insert it into a tag of another XML document? 
 
Thanks in adv
 
Andrea (Mr not Mrs).  


====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to MailAdmin at tilab.com. Thank you
====================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020828/d9f378d3/attachment.htm


More information about the jdom-interest mailing list