Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] CDATA sections

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Arjan Huijzer <huijzer AT gmail.com>
  • Cc: XOM-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] CDATA sections
  • Date: Wed, 05 Jan 2005 05:53:39 -0500

Arjan Huijzer wrote:
Just to clarify my reasons. I wanted to use the CDATA section, because:

1. The content of my article would be added by the users that may (or
may not) choose to add some HTML to it. But it might very well not be
well-formed XML and I do not want to place that restriction on them.
So I find mixed content not desirable, because it would mean I have to
parse the HTML and create well-formed XHTML from it.

Then you should use TagSoup or HTML Tidy to convert the HTML into well-formed HTML so you can insert it as markup.



--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page