Subject: | Net::LDAP::DSML : context error |
Hello,
Using DSML.pm ($Id: DSML.pm,v 1.19 2003/05/07 10:53:42 chrisridd Exp $) to write entries to a DSML file, with a write_entry call for each entry, the context "directory-entries" is inserted for each entry.
The writer doesn't see that it is already in the "directory-entries" context. This is caused by line 320 in DSML.pm :
while (@$context and ($context->[-1] ne 'dsml' or $new eq '')) {
Shouldn't it be something like :
while (@$context and ($context->[-1] ne $new) and ($context->[-1] ne 'dsml' or $new eq '')) {
Otherwise, the DSML file will contain a lot of "directory-entries" elements, each of them containing only one "entry" element. It seems not to be conform to the DSML DTD ...
Am I right ? Or am I using the DSML writer incorrectly ?
Thanks. Regards,
Pierre