public static void parser(String url) throws MalformedURLException, IOException, ParserException{
        /* parser*/
		HttpURLConnection urlConnection=(HttpURLConnection) (new URL(url)).openConnection();
        Parser parser=new Parser(urlConnection);
        
        NodeFilter titleFilter=new NodeClassFilter(TitleTag.class); //This class accepts all tags of a given class.
        NodeList nodeList=null;
        
        /*filter*/
        OrFilter lasFilter=new OrFilter();//κƥϹ˲Ľڵ
        lasFilter.setPredicates(new NodeFilter[]{titleFilter});//ΪlasFilterù
        
        
        nodeList=parser.parse(lasFilter);//ṩfilterԴ
        Node []nodes=nodeList.toNodeArray();
        for(int i=0;i<nodes.length;i++){
            if(nodes[i] instanceof TitleTag){
                TitleTag titleTag=(TitleTag)nodes[i];
                String title=titleTag.getTitle();
                System.out.println(title);
            }
        }
}