Why are my strings enclosed in double quotes or CDATA in Android XML?



1 comment

  • Avatar
    Jessica Coleman (Edited )

    CDATA (Character Data) sections are used to enclose strings that contain characters that might otherwise be interpreted by the XML parser. This includes characters like "<" or "&" which have special meanings in XML. By wrapping the string in CDATA, you ensure these characters are treated literally as part of the string.


    Comment actions Permalink

Please sign in to leave a comment.