I have an XML descriptor file containing attribute specifications such as:
<attribute
name="abc"
description="xyz e.g. <br> with a new line">
...
</attribute>
These XML descriptors are parsed by a groovy script to produce HTML documentation (among other things) along the lines of:
<table>
<tr><th>Name</th><th>Description</th></tr>
<tr><td>abc</td><td>xyz e.g. <br>with a new line</td></tr>
</table>
My question is what do I have to put in the XML to display HTML entities as character literals? e.g. A less than sign, such as:
<table>
<tr><th>Name</th><th>Description</th></tr>
<tr><td>abc</td><td>You must supply a <port number></td></tr>
</table>
(The groovy script does no processing on the XML description - just prints it into the HTML file.)
nameanddescriptionattributes will be better as child elements of<attribute>instead. Of course, unless its schema is out of your control...