[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: JLDAP DSMLWriter doesn't handle special characters

At 08:39 AM 4/19/2004, Jon Roberts wrote:
>When I use the DSMLWriter class to output an entry as DSML, the output contains XML special characters like &, <, >, etc. that appear in attribute values as they are. This of course causes parsers to barf. Is there a plan to make character substitutions in the DSMLWriter.writeAttribute() method a la string.replaceAll("&", "&amp;"), or are we working under an assumption that directory attribute values just won't contain these characters? I know a change would slow things down significantly, but the feature unfortunately won't be useful if arbitrary data can make it break.

I suggest you file an ITS describing the behavior you believe
is appropriate.  Patches are, of course, welcomed.