@SuppressWarnings("unchecked")
    public static List<Node> selectNodes(Document doc, String xpathExpression) {

        return doc.selectNodes(xpathExpression);
    }
@ SuppressWarnings ( "unchecked" ) public static List < Node > selectNodes ( Document doc , String xpathExpression ) { return doc . selectNodes ( xpathExpression ) ; }
Provides a type safe / generic wrapper for {@link Document#selectNodes(String)}.<p>

@param doc the document to select the nodes from
@param xpathExpression the XPATH expression to select

@return type safe access to {@link Document#selectNodes(String)}