setClassMapping

setClassMapping(nodeClass:   Class;
                mappedClass: Class) updating;

The setClassMapping method of the JadeXMLDocumentParser class enables you to specify the class of tree instances created during parsing; for example:

setClassMapping(JadeXMLElement, MyElement);

This method sets the mapping of the JadeXMLNode class specified in the nodeClass parameter to the user-specified class in the mappedClass parameter.

When creating persistent documents, an exception is raised if all concrete JadeXMLNode classes are not mapped to user subclasses.