src/main/java/com/itfsw/mybatis/generator/plugins/utils/FormatTools.java
private static String getIdFromElement(XmlElement element) {
        for (Attribute attribute : element.getAttributes()) {
            if (attribute.getName().equals("id")) {
                return attribute.getValue();
            }
        }
        return null;
    }
private static String getIdFromElement(XmlElement element) {
        for (Attribute attribute : element.getAttributes()) {
            if (attribute.getName().equals("id")) {
                return attribute.getValue();
            }
        }
        return null;
    }
private static String getIdFromElement ( XmlElement element ) { for ( Attribute attribute : element . getAttributes ( ) ) { if ( attribute . getName ( ) . equals ( "id" ) ) { return attribute . getValue ( ) ; } } return null ; }
找出节点ID值
@param element
@return
找出节点ID值