Using XMLBeans 2.2.0, if I parse an XML document that contains CDATA sections to escape blocks of text, when I save the document to a file system – the CDATA sections are no longer preserved and literals that may be interpreted as markup (such as an ampersand) are written out in their escaped form.

 

For example, it the source document contains:

<element><![CDATA[fred&ethyl]]></element>

… it is saved as:

<element>fred&amp;ethyl</element>

 

Any ideas how to preserve the CDATA sections?

 

Thanks!

 

~ David

 

David Lewis
Software Developer – National Forest Information System/

Concepteur de logiciels – Système national d’information forestière

 

Natural Resources Canada                     Ressources naturelles Canada             

Canadian Forest Service.                       Service canadien des forêts

506 West Burnside Road                  506, chemin ouest Burnside

Victoria, B.C. V8Z 1M5                           Victoria, (C.-B.), V8Z 1M5

 

Telephone:  (250) 363 0710                    Téléphone:  (250) 363 0710

Facsimile:   (250) 363 0775                     Télécopier:  (250) 363 0775

Email: dlewis@ pfc.cfs.nrcan.gc.ca       Courriel: [EMAIL PROTECTED]

 

NFIS Website / SNIF Site Web: http://nfis.org/

PFC Website / CFP Site Web: http://pfc.cfs.nrcan.gc.ca/

 

Reply via email to