Managing Frequently changing content
-
I have the following requirement: E.g., on the UI, I have a grid with a list of items (having an unique id) and next to those items, I have a info icon which has a brief description about the item. The "text" that goes in the description is supplied to me by business and they want to have an ability to change it without code changes. One way would be having an XML file like:
<infotips>
<infotip>
<id>101</id>
<name>Information 1</name>
<infotext>This is a description of Information 1</infotext>
</infotips>
<infotip>
<id>102</id>
<name>Information 2</name>
<infotext>This is a description of Information 2</infotext>
</infotips>
</infotips>The problem is that XML file can easily be messed up by a simple typo or a special character. Enclosing in CDATA would still have the vulnerability of inputting improper XML structure. So the question is, what is a good way to handle this type of scenario? Thx in advance.