code: public BaseXmlExporter getExportVisitor(XmlMapping type, ContentHandler contentHandler, boolean skipBinary,
        boolean noRecurse, ItemDataConsumer dataManager, NamespaceRegistry namespaceRegistry,
        ValueFactoryImpl systemValueFactory) throws NamespaceException, RepositoryException
     {
  
        if (type == XmlMapping.SYSVIEW)
        {
           return new SystemViewContentExporter(contentHandler, dataManager, namespaceRegistry, systemValueFactory,
              skipBinary, noRecurse);
        }
        else if (type == XmlMapping.DOCVIEW)
        {
           return new DocumentViewContentExporter(contentHandler, dataManager, namespaceRegistry, systemValueFactory,
              skipBinary, noRecurse);
        }
        return null;
     }
docs: Create export visitor for given type of view.
  
  @param type - 6.4 XML Mappings
  @param contentHandler - for which will be generate SAX events
  @param skipBinary - If skipBinary is true then any properties of
  PropertyType.BINARY will be serialized as if they are empty.
  @param noRecurse - if noRecurse is false, the whole subtree are serialized.
  @param dataManager - ItemDataConsumer
  @param namespaceRegistry - NamespaceRegistry
  @param systemValueFactory - default value factory
  @return - visitor BaseXmlExporter.
  @throws NamespaceException
  @throws RepositoryException