Tôi có một nguồn tài nguyên chuỗi trong dự án Android của tôi, và tôi đang sử dụng một phần CDATA để nhúng chuỗi của tôi trong XML:Lỗi! sử dụng CDATA trong tài nguyên strings.xml Android
<string name="ackng"><![CDATA[
<html>
<body>
<h1>Acknowledgements</h1>
<p>
Senator Paul Wellstone's book, the Conscience of a Liberal: Reclaiming the
compassionate agenda was an inspiration and an affirmation that you can be truthful
and honest as a politician, and compassionate and people-centred as a representative.
And as President Bill Clinton affirmed as he addressed the joint session of the
National Assembly on 26th August, 2000, thus:
“Every nation that has struggled to build democracy has found that success
depends on leaders who believe government exists to serve people, not the
other way around.”
</p>
<p>
Paul Wellstone's book was my inspiration for the launching of the compassionate
agenda in February 2002. Clinton's speech affirmed my convictions regarding the
sanctity of the democratic mandate to serve the people. I acknowledge the clarity of
their focus and the inspiration their works continue to provide.
</p>
</body></html>]]></string>
nhưng eclispe đang trở lại báo lỗi này:
[2013-02-18 00:11:05 - MyPA] C:\Users\Daniel\workspace\MyPA\res\values\strings.xml:191: error: Apostrophe not preceded by \ (in <html>
Tôi không biết ai đã bỏ phiếu này, nhưng điều này * là * chính xác ... +1 – Ahmad