Re: [xmlc] Adding xhtml code in string form
David Li <[email protected]> Mon, 5 Sep 2005 19:57:36 +0800
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1125921497-18658-82 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit XMLC doesn't really put CDATA in a setCDATA call. It's simple insert raw string. David On Sep 5, 2005, at 6:20 PM, Erik Rasmussen wrote: > CDATA doesn't work. It generates xhtml like: > --- > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 > Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <title>Page</title> > </head> > <body> > <div><![CDATA[<h2>This is cdata!</h2>]]></div> > </body> > </html> > --- > If you open that in a browser, you'll see that it > doesn't work at all. > > Thanks for the suggestion, though! > Erik > > --- David Li <[email protected]> wrote: > > >> Try use CDATASection. >> >> >> > http://mail-archive.objectweb.org/xmlc/2003-10/msg00044.html > >> >> >> On Sep 5, 2005, at 8:24 AM, [email protected] >> wrote: >> >> >>> Hello again. I have a field in my database that >>> >> allows xhtml, and >> >>> I want to be able to write this to the page. This >>> >> was >> >>> straightforward in jsp-land. But how do I do it >>> >> in xmlc-land? >> >>> Obviously, calling the setTextWhatever() method is >>> >> escaping all my >> >>> code. So I guess I need to construct a dom >>> >> structure from my >> >>> string value, and appendChild() that. But how? >>> >> I'm sure I could >> >>> dig into the depths of DocumentLoaderImpl.java and >>> >> Xerces figure it >> >>> out, but I thought I'd pose the question here >>> >> first. Surely this >> >>> has been done by some developer on this list. >>> >>> Cheers, >>> Erik >>> >>> > > > > > ______________________________________________________ > Click here to donate to the Hurricane Katrina relief effort. > http://store.yahoo.com/redcross-donate3/ > > > -- > You receive this message as a subscriber of the [email protected] > mailing list. > To unsubscribe: mailto:[email protected] > For general help: mailto:[email protected]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/ > wws > ------------=_1125921497-18658-82 Content-Type: text/plain; name="message-footer.txt" Content-Disposition: inline; filename="message-footer.txt" Content-Transfer-Encoding: 8bit -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws ------------=_1125921497-18658-82--