src/main/java/com/itfsw/mybatis/generator/plugins/utils/XmlElementTools.java
public static List<TextElement> findAllTextElements(XmlElement xmlElement){
        List<TextElement> textElements = new ArrayList<>();
        for (Element element : xmlElement.getElements()){
            if (element instanceof XmlElement){
                textElements.addAll(findAllTextElements((XmlElement) element));
            } else if (element instanceof TextElement){
                textElements.add((TextElement) element);
            }
        }
        return textElements;
    }
public static List<TextElement> findAllTextElements(XmlElement xmlElement){
        List<TextElement> textElements = new ArrayList<>();
        for (Element element : xmlElement.getElements()){
            if (element instanceof XmlElement){
                textElements.addAll(findAllTextElements((XmlElement) element));
            } else if (element instanceof TextElement){
                textElements.add((TextElement) element);
            }
        }
        return textElements;
    }
查询指定xml下所有text xml 节点
@param xmlElement
@return