xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Xmlbeans Wiki] Update of "CdataOptions" by GavinMcDonald
Date Thu, 22 Dec 2011 23:19:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlbeans Wiki" for change notification.

The "CdataOptions" page has been changed by GavinMcDonald:
http://wiki.apache.org/xmlbeans/CdataOptions?action=diff&rev1=49&rev2=50

  Since CDATA is just a syntactic notation in XML, and it's not part of XML info-set, by default
XMLBeans is not saving additional state to remember which text is CDATA format. But numerous
requests from users, convinced us that many do put semantics on CDATA, so we added two types
of options to support CDATA format:
  
  == Fast CDATA ==
- !XmlOptions [[http://www.hotelsandaccommodation.com.au/victoria/ballarat/|Ballarat hotels]]
+ !XmlOptions 
   * [[http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveCDataLengthThreshold(int)|setSaveCDataLengthThreshold]]

   * [[http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveCDataEntityCountThreshold(int)|setSaveCDataEntityCountThreshold]]

- [[http://www.vitaminstar.com.au/vital-greens-c-17.html|vital greens]]
+ 
  This options control when saving will use CDATA blocks. CDATA will be used if the folowing
condition is true:
  `textLength > cdataLengthThreshold && entityCount > cdataEntityCountThreshold`
  
@@ -24, +24 @@

  
  If this option is used when loading a document, the store will be annotated with [[http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/CDataBookmark.html#CDATA_BOOKMARK|CDATA
bookmarks]].
  
- If used for saving this option will save the text fields annotated with [[http://hepburnspringsaccommodation.wordpress.com/|accommodation]]
as CDATA XML text.
+ If used for saving this option will save the text fields annotated with C!DataBookmark as
CDATA XML text.
  
  '''Note:''' Due to the store representation, a CDATA will not be recognized if it is immediately
after non CDATA text and all text following it will be considered CDATA.
  
  
  
  
- 
- 
  '''Note:''' The two types of controlling CDATA output work independently.
  

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


Mime
View raw message