The general structure of XML

Structure of XML

In XML, you define your own tags. So a tag may be <car> or <students>. The meaning of the tag can be defined using DTD. A general structure of XML can be like follows –

<Class Name=”Nine”>

DTD or Schema

If you want to use a tag, you’ll have to define it’s meaning. This definition is stored in a DTD (Document Type Definition). You can define your own DTD or use an existing one.
Defining a DTD actually means defining a XML language. An alternative for a DTD is Schema.

Showing the results

Often it’s not necessary to display the data in a XML document. It’s for instance possible to store the data in a database right away. If you want to show the data, you can. XML itself is not capable of doing so. But XML documents can be made visible with the aid of a language that defines the presentation. XSL (eXtensible Stylesheet Language) is created for this purpose. But the presentation can also be defined with CSS (Cascading Style Sheets).

Read the next post about XML tags,

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.