Tag Archives: categorisation

XML – What? Uses? Importance?

The essence of XML is in its name: Extensible Markup Language.

Tom Myer in his piece A Really, Really, Really Good Introduction to XML breaks down XML as the following:

Extensible

XML is extensible. It lets you define your own tags, the order in which they occur, and how they should be processed or displayed. Another way to think about extensibility is to consider that XML allows all of us to extend our notion of what a document is: it can be a file that lives on a file server, or it can be a transient piece of data that flows between two computer systems (as in the case of Web Services).

Markup

The most recognisable feature of XML is its tags, or elements (to be more accurate). In fact, the elements you’ll create in XML will be very similar to the elements you’ve already been creating in your HTML documents. However, XML allows you to define your own set of tags.

Language

XML is a language that’s very similar to HTML. It’s much more flexible than HTML because it allows you to create your own custom tags.

I found that MXL was a simple concept and I needed to be sure that the simplicity that I understood, was not me simply misunderstanding the whole concept. To confirm what I understood to be correct, I decided to read some articles, look at the uses online and watch some tutorial videos explaining more about XML. The one above I found easy to understand and it gave me further understanding of the physical act of writing of XML.

 

Why XML is important ?

In his article ‘What is XML and Why Should Companies Use It?’,  Alan Pelz-Sharpe speaks about how technology in business has become relatively cheep, so smaller home based businesses an now compete on a larger playing filed, however it stresses the need for these businesses to consider and to use XML from the off. The XML data management system is something that must be at the foundation of data management in all businesses or systems using data management, Smaller businesses who do not store or categorise their data correctly run the risk of losing information which may be necessary to their income. Customer data not categorised correctly can in some cases lose the business owner valuable marketing and contact information.

 

My XML Learning Task

As I don’t feel that I have enough content to manage and categorise yet, I chose to take a favourite book of mine and see how i would go about giving it some categorisation structure using XML. The following shows the Author, publisher, title and book description. These are identifiers that I have chosen to categorise the book. The identifiers are very basic and used by many online selling platforms worldwide.

<book>

<author>”Douglas Adams”</author>
<title>”The Hitchhiker’s Guide to the Galaxy”</title>
<genre>Scifi</genre>
<publish_date>1979-10-12</publish_date>
<description>Seconds before the Earth is demolished to make way for a galactic freeway, Arthur Dent is plucked off the planet by his friend Ford Prefect, a researcher for the revised edition of The Hitchhiker’s Guide to the Galaxy who, for the last fifteen years, has been posing as an out-of-work actor.
Together this dynamic pair begin a journey through space aided by quotes from The Hitchhiker’s Guide (“A towel is about the most massively useful thing an interstellar hitchhiker can have”) and a galaxy-full of fellow travelers: Zaphod Beeblebrox–the two-headed, three-armed ex-hippie and totally out-to-lunch president of the galaxy; Trillian, Zaphod’s girlfriend (formally Tricia McMillan), whom Arthur tried to pick up at a cocktail party once upon a time zone; Marvin, a paranoid, brilliant, and chronically depressed robot; Veet Voojagig, a former graduate student who is obsessed with the disappearance of all the ballpoint pens he bought over the years.</description>
</book>

 

I have used an XML Validator to check whether my xml language has been written correctly: CodeBeauty

XML test

and it works!