TechnoByte, The Students Forum

What is XML?

Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.

The design goals of XML emphasize simplicity, generality, and usability across the Internet. It is a textual data format with strong support via Unicode for different human languages. Although the design of XML focuses on documents, the language is widely used for the representation of arbitrary data structures such as those used in web services.

XML file to display name of students

XML file to display name and mark in three subjects for each student

XML with CSS

Embedding CSS style sheet with XML we can newly create an XML document to display in clear and precise on a web page. It can be displayed in two ways with CSS and XSLT (XSL (eXtensible Stylesheet Language) is a styling language for XML.). Unlike HTML in XML the CSS styles are not included as default instead the properties are defined for each element.

CSS style sheets provide certain style instruction which is applied before the start of the root element. This CSS is used in a scenario where we are in need to define the size of an element, adding content to the document and creating a colour and background image on the web. With this the tree data on the document is supposed to apply Style rules. In other words: It doesn’t change the XML Structure when applying Styles.

Example of XML & CSS

XML File

CSS File

Example 2 of XML & CSS

XML File

CSS File