public void setMaximumDepth(int depth) {
        this.maxDepth = depth;
    }
Sets the maximum XML element nesting level. If this depth level is
exceeded then an exception gets thrown.

@param depth maximum XML element nesting level
tika-core/src/main/java/org/apache/tika/sax/SecureContentHandler.java