You can refine the various portions of the LDAP to XML mapping and conversion process by specifying a custom hook. A hook is simply a Java class that implements the LXHook interface.
Hooks only apply to <entry> elements and work per LDAP entry converted. Use the prefix method to munge an LDAPEntry object retrieved from the LDAP server before processing. Or the postfix methods to munge the final XML Element object after conversion is done.