XML/CSS question

K

Kourosh

Simple but I can't figure it out. I'm trying to colorize an XML file.
The format being like this:

....
<entry foreground="1">
<text>...</text>
<time>...</time>
</entry>


I just can't figure out how to make the CSS file differentiate between
"entry" tags that have different "foreground" attributes. For example I
want all entry tags with foreground of 1 to be displayed in black, all
with value of 2 in red, etc.

Any suggestions? I'm producing the XML file so I guess I could reformat
the structure of my file if there is a better way too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top