Prev: About unknown charaters shows
Next: Ruby Webbrowser
From: Priyank Shah on 31 Jul 2010 07:52 Hi, Any one have idea about how to use Nokogiri::CSS("abc.css") for parse css file or getting the classes and styles from that css file. Thanks, Priyank Shah -- Posted via http://www.ruby-forum.com/.
From: Markus Fischer on 1 Aug 2010 10:15 Hi, On 31.07.2010 13:52, Priyank Shah wrote: > Any one have idea about how to use > > Nokogiri::CSS("abc.css") > > for parse css file or getting the classes and styles from that css file. Nokogiri cannot parse CSS, what you're looking at is part to parse the selectors used to query your document. You need another library for parsing CSS itself (see google). HTH
From: Priyank Shah on 2 Aug 2010 02:43 Markus Fischer wrote: > Hi, > > On 31.07.2010 13:52, Priyank Shah wrote: >> Any one have idea about how to use >> >> Nokogiri::CSS("abc.css") >> >> for parse css file or getting the classes and styles from that css file. > > Nokogiri cannot parse CSS, what you're looking at is part to parse the > selectors used to query your document. You need another library for > parsing CSS itself (see google). > > HTH Hi, Thanks for reply, But i found gem for that is "css_parser" please check it. http://github.com/alexdunae/css_parser it is really nice. Thanks, Priyank Shah -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: About unknown charaters shows Next: Ruby Webbrowser |