Dom4j DocumentWrapper: support external element index