Looking for a CSS Parser in java [closed]

2019-01-04 02:17发布

I'm looking for a CSS Parser in java. In particular my requirement is, for a given node/element in an HTML document, to be able to ask/get the css styles for that element from the Parser.

I know there is the W3C SAC interface and one or 2 implementations based on this - but turorials/examples appear non-existant.

Any help/points in right direction much appreciated.

Thanks

标签: java css parsing
8条回答
ら.Afraid
2楼-- · 2019-01-04 02:44

an addition to cssparser.sourcefourge.net,

Cobra:

http://lobobrowser.org/cobra.jsp

查看更多
一夜七次
3楼-- · 2019-01-04 02:51

Check out SAC and its implementstions here: http://www.w3.org/Style/CSS/SAC/

CSSParser is a little bit out of date

查看更多
登录 后发表回答