You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Adam Walsh <ad...@grummen.net> on 2005/11/02 02:09:28 UTC

Re: CDATA sections

Hi Radu.

Unfortunately the default algorithm didn't do what I needed. That patch 
is exactly what I needed and did the job perfectly. Any chance that 
we'll see that patch in an official release sometime soon?

Adam

Radu Preotiuc-Pietro wrote:

>No, but the good news is that there is patch that was submitted to the
>list which will allow you to do it. Strangely enough, I can't point you
>to it, because that specific e-mail is missing from all our mailing
>archives.
>
>Here's a copy. The patch has two parts, one dealing with entities (which
>is now part of XmlBeans) and one dealing with CDATA sections, which was
>deemed a little too difficult to use and was not included. But it
>worked.
>
>So if you really need it, you're free to experiment. Let me know if
>attaching the original email with the attachment inside worked.
>
>Radu
>PS HTML makes use of a lot of '<' and '&', make sure first that the
>default algorithm doesn't do a fair job for you
>
>-----Original Message-----
>From: Adam Walsh [mailto:adam@grummen.net] 
>Sent: Friday, October 21, 2005 12:52 AM
>To: user@xmlbeans.apache.org
>Subject: CDATA sections
>
>
>Hi all,
>
>According to this old message on the list [1] when embedding HTML as a 
>textual value of an XML element sometimes xmlbeans will use a CDATA 
>section but other times it will just escape the characters that it finds
>
>objectionable. Is there any way that I can force it to always use a 
>CDATA section in xmlbeans 2.0?
>
>Thanks in advance
>
>Adam
>
>[1] http://nagoya.apache.org/eyebrowse/ReadMsg?listId=277&msgNo=662
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>  
>
>
> ------------------------------------------------------------------------
>
> Subject:
> xml beans version two enhancement.
> From:
> "Roger Weber" <av...@gmail.com>
> Date:
> Thu, 9 Jun 2005 15:36:49 -0700
> To:
> <de...@xmlbeans.apache.org>
>
> To:
> <de...@xmlbeans.apache.org>
>
>
>I have attached a diff of changes in the Saver that will enable 2 things.  
>
>First is the escaping of more characters than only "<" 
>and "&".  For each character you want escaped you add
>
>an entry into a map that specifies which character is
>to be escaped and into what base (decimal or hex) it
>should be encoded.  (no named escapes)
>
>Also the changes allow the threshold between multiple
>escaped characters and a CDATA section to be altered. 
>
>Each of the parameters -- length of string, number of
>characters, and percentage of characters would be
>configurable.  
>
>Since this is my first submission, please advise me as
>to what to do next.  
>
>
>Thank you in advance.  
>
>Roger
>
>
>  
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>For additional commands, e-mail: user-help@xmlbeans.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org