cn.wanghaomiao.example.XpathTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JsoupXpath Show documentation
Show all versions of JsoupXpath Show documentation
一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。
package cn.wanghaomiao.example;
/**
* @author 汪浩淼 [ [email protected] ]
* @since 14-3-19
*/
public class XpathTest {
public static void main(String[] args) {
//测试案例统一挪到 test/java/cn.wanghaomiao.xpath.model.JXDocumentTest中,并根据测试页面改版情况更新了最新的XPath
//github地址:https://github.com/zhegexiaohuozi/JsoupXpath/blob/master/src/test/java/cn/wanghaomiao/xpath/model/JXDocumentTest.java
}
}