views:

98

answers:

1

What i want to do is:

I have css file read from a file into a String. I would like to build some kind of css resource (CssResource ?) out of that string or file, and I'd like to be able to extract from it all classes and id selectors in some kind of collection which i could search.

Does anybody know how to do that ?

A: 

You need a CSS Parser. You can use a SAC compliant parser like CssParser. GWT internally uses a modified version of Flute. You could go with either of them, though I think CSSParser is better maintained.

sri
I'm looking for a simple example on how to do this
Zoja