Forum How do I...?

XML question

Ben
I have XML similar to this:

<q>This is<a>an example</a></q>



And what I would like to do is have the text "an example" print out without the "This is" part. However, if I set <q> to display:none, then I don't think I can retrieve <a> in any way. Help?
xuehong
Hi Ben,
you could try this:
q { visibility: hidden }
a {
    visibility: visible;
    float: left; /* to move the text to the left */
}


Xuehong