- XML Tutorial
- how create xml file
- XML Elements
- XML Attributes
- XML Namespaces
- how view xml file
- XML File Encoding
- how style xml code
- XML Code File
- Valid XML File
how style xml file | xml css
how styling xml code file with css language using css(cascading style sheets) you can format xml document.
how to style xml with css
look at the following xml file.<?xml-stylesheet type="text/css" href="xmlformat.css"?> ,a so-called processing instruction pointing to a css stylesheet.a very small w3c standard defines how an xml document can include a css stylesheet.
step 1:create an xml file with the following content and save it:products.xml
in xml file second line links the xml file to the css file:
step 2 : create a file with the following content save it as xmlformat.css into the same directory as the xml file.
finally,productes.xml displayed with css in browser styling xml with css is not the most common method.the w3c recommends using xslt instead.