Re: SAX example in Java

Sam Cheung wrote:
> Thanks for your quick response. I actually meant SAC
> (The Simple API for CSS) example in Java. I went to
> the website looking
> for examples in Java (how to parse a CSS and lookup
> rules), but I could not find one there. So I am
> wondering where I can find any examples in that area.

I don't have usage examples for Java SAC handy, but if you've used SAX 
it ought to be very similar. You create a parser, set handlers on it, 
and then receive events according to the interfaces defined in the 
JavaDoc. There's nothing special to it, the main difference is that the 
events don't carry the same names (naturally) and that the objects that 
describe the tokens are more complex than in SAX because that's the way 
CSS is.

Robin Berjon <>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488

Received on Thursday, 22 August 2002 08:57:36 UTC