[jdom-interest] Embedding HTML in XML
Thomas M. Sasala
tsasala at hifusion.com
Mon Jun 26 12:49:11 PDT 2000
If the user entered HTML is well formed, any XML parser
will parse it into a DOM document. That's what we are doing for
our front-end folks. We plan on publishing our entire site
using this mechanism.
-Tom
Richard Waters wrote:
>
> hi all,
>
> i'm trying out a little servlet project with XML - i was previously using
> the xerces api, but things have become so much easier after switching to
> jdom. great job!
>
> so maybe someone can help me with this problem: i have users submitting html
> forms, the content of which is converted into some xml (with XMLOutputter),
> and later rendered as html (using xalan). i'd like users to be able to enter
> some html in those textboxes, and have that correctly rendered later.
>
> the only way i came up with to do this is to parse the text submitted with
> the html forms, create xml elements for the html elements i find, generate a
> list with these elements and the text, and then use setMixedContent().
> that's a pretty painful way to do it. since i'm pretty much a novice so far,
> i'm hoping i'm just failing to see a much easier way to do this.
>
> thanks a lot for any advice you can give,
> rick
> _______________________________________________
> 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