An Android strings.xml CDATA resource example (multiline string)

The following code shows how to create a CDATA element (string resource) in a strings.xml file in an Android application:

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string name="app_name">My App</string>
    <string name="action_settings">Settings</string>

    <string name="gettysburg_address">
        <![CDATA[


            Four score and seven years ago 
            our fathers brought forth on this continent, a new nation, 
            conceived in Liberty, and dedicated to the proposition 
            that all men are created equal.


        ]]>
    </string>

</resources>

This is one way of creating a multiline string resource in an Android strings.xml resource file (though not the only way).