PolicySet does not encode(description).
Brought to you by:
farrukh_najmi,
sethp
When I set the description of a PolicySet to "<hello>" and then call the encode() method, it generates obviously invalid XML.
Given that you want the code to be of "high quality", why do you construct XML documents by concatenating characters, and not by using a specialized XMLWriter like suggested at <http://www.koders.com/java/fidC52D4148799A84CDD7AA51D6A13A03129903D717.aspx>? To me, your current practice looks very error-prone.
Roland