By using CSS, you can add display information to XML documents.
Use CSS to display your XML?
It is possible to format XML documents using CSS.
The following example is about how to use a CSS style sheet to format an XML document:
This is the XML file: CD directory
This is the style sheet: CSS file
Finally, please check the effect: CD directory formatted by CSS file
The following is a fragment of this XML file. The second line, , links this XML file to the CSS file:
Empire Burlesque Bob Dylan USA Columbia 10.90 1985 . . . . Hide your heart Bonnie Tyler UK CBS Records 9.90 1988
Comment: Use CSS formatting XML does not represent the future of XML document styling. XML documents should be formatted using the W3C's XSL standard!
The above is the detailed content of XML Development Basics - Detailed explanation of using CSS to display XML. For more information, please follow other related articles on the PHP Chinese website!