Search code examples
javaxmlresourcebundle

Java XML resource bundle and HTML content


Need to store HTML content as a value in the resource bundle (XML format). The HTML tags are conflicting with the XML tags. How can I store the HTML string without using character entity references (< and >)


Solution

  • Put it between <![CDATA[ and ]]>.