[jdom-interest] Embedding HTML in XML

Jason Hunter jhunter at acm.org
Mon Jun 26 13:53:42 PDT 2000

> have either (1) the <i>
> tags _not_ be interpreted by the stylesheet, but interpreted by the browser
> as html, or (2) have the <i> tags interpreted by the stylesheet, but still
> not have to parse the string and create a list and use setMixedContent().

Hmm...  An <i> in the content string will become &lt;i&gt; when written
using XMLOutputter, not what you want.  But converting an HTML fragment
to XML (a la JDOM) is difficult because standard HTML isn't well-formed
XML.  What are you going to do if someone writes in 

this is my text <p>

If you store that in XML, the document will be malformed.


More information about the jdom-interest mailing list