LDAPXML: Map Documentation

A map file lets LDAPXML know what kind of XML to output for your LDAP tree. Here's the DTD.

<lxmap>

The root element in a map file is <lxmap>. All LX map files must have this element as the top element wrapping all the other elements. XML Attributes:

<entry>

The entry represents an LDAP entry. It specifies the structural objectClass in it's class attribute. When the LDAPXML encounters an LDAP entry, it tries to find a matching <entry> to use as a conversion map. This element can contain any number of <class> elements, which specify details of the mapping process. XML Attributes:

<class>

Specifies how to convert the a given LDAP objectClass to XML. By default all the elements are mapped. A <class> element can also contain various <element< or <attribute> elements which specify how to map the various LDAP attributes to XML. When in 'exclusive' mode (see below) only those attributes specifically referenced are mapped. XML Attributes:

<attribute>

Creates a XML attribute for a given LDAP attribute. This element should be contained within a <class> element. By putting <rename> or <ignore> elements within this one, you can manipulate it. XML Attributes:

<element>

Creates a XML element for a given LDAP attribute. This element should be contained within a <class> element. By putting <rename> or <ignore> elements within this one, you can manipulate it. XML Attributes:

<rename>

Renames the XML element or XML attribute that this <rename> element is contained within. By default all mapped LDAP attributes keep the same name, this allows you to map <entry> or <attribute> to a different name. XML Attributes:

<ignore>

Causes the XML element or XML attribute that this <rename> to not be used or output in the final XML.

Namespace Elements

The ns and namespace attributes specify which namespace prefix and namespace uri to use on the given XML elements. They apply to all elements beneath the element to which they are assigned.

   [ ldapxml | home page ]