This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes CSS Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "CSS Parser" Watch "CSS Parser" New topic
Author

CSS Parser

Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Hello All,
Currently i am working on a project where i want to read(parse) css file in java and store the values in hashmap or some data structure.
Does anyone know how to parse css file?

Regards,
Surya
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
This is more related to the serverside porion. Moving to JIG Beg.

See the click here link above if viewing in the HTML/JavaScript forum.

Eric
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Try using Google to search for "java css parser" and you'll find a whole list of useful links. Have a look at http://cssparser.sourceforge.net/ for example.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Surya Kant
Ranch Hand

Joined: Mar 29, 2005
Posts: 104
Hey all,
I found solution for my problem.I used following packages for my problem..
javax.swing.text.Style;
javax.swing.text.html.StyleSheet;

Regards,
Surya
 
jQuery in Action, 2nd edition
 
subject: CSS Parser
 
Similar Threads
CSV File
using css file in jsp along with tiles
CSS with EL
looking for away to parse html + css file and get it as somekind of structure
layout and multibrowser hell