Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module uses CDATA for all tags' values. In fact, they are completely unnecessary except for highly unusual circumstances. Please see http://en.wikipedia.org/wiki/CDATA#CDATA_sections_in_XML for an explanation.
Comment | File | Size | Author |
---|---|---|---|
#6 | 6.x-1.1_add_cdata_wrapper_support.patch | 2.46 KB | agalitsyn |
#3 | no_cdata.patch | 936 bytes | Aren Cambre |
#1 | no_cdata.patch | 892 bytes | Aren Cambre |
Comments
Comment #1
Aren Cambre CreditAttribution: Aren Cambre commentedPatch attached.
Comment #2
Aren Cambre CreditAttribution: Aren Cambre commentedThis also appears to fix #494846: XML export pads all values with spaces. I don't know why!
Comment #3
Aren Cambre CreditAttribution: Aren Cambre commentedMistake in original patch caused incorrect entity references. Fixed version attached.
Comment #4
neclimdulCommitted a modified version of this with the logic in the preprocess function. Thanks.
Comment #6
agalitsyn CreditAttribution: agalitsyn commentedCDATA can be needed for specific fields.
So I use a standart field option called "Element wrapper type" to add CDATA wrapper. Views have variable "views_field_rewrite_elements" which can be overriden with yours additional wrappers.
I add cdata using drush
And write come code to support this wrapper. (see patch)
Comment #7
neclimdul