Re: [xmlc] Adding xhtml code in string form
Erik Rasmussen <[email protected]> Mon, 5 Sep 2005 03:52:29 -0700 (PDT)
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1125917588-18658-63 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit That's exactly what I'm asking. How do I "suck that into a DOM document format"? The org.enhydra.xml.xmlc.XMLObject stuff is so abstracted into lots of classes, it's hard to figure out where the actual nodes are getting constructed. --- Justin Akehurst <[email protected]> wrote: > Perhaps if you can find out how you can take a > string of xhtml text > and suck that into a DOM Document format, then you > could probably do > DOM import and import that chunk into your document > somehow. Would > probably make sense if your chunk in the database > was a fully valid > XHTML chunk, though. > > -Justin > > On Sep 4, 2005, at 5:24 PM, [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 > > > > > > -- > > 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 > > > > > > > -- > 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 > ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ ------------=_1125917588-18658-63 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 ------------=_1125917588-18658-63--