26.10.08

In Plain English

In Plain English

What is XMLNS?

What is XMLNS?

XMLNS stands for XML Name Space. It is for avoiding conflicting in the Names.

Sorry, I dont understand.

Your name is Preeti. In your class, if there is another Preeti, there will be a name conflict. The conflict can be eliminated by calling , b:preeti and s:preeti.

 

Tell me with another example:

<table width="100" height="100"><tr><td> Ram </td></tr></table>

<table age="25" dob="31-12-1980">Ram</table>

Here the browser has to handle these two table tags differently.

We can give unique names like this:

<table width="100" height="100"><tr><td> Ram </td></tr></table>

<b:table age="25" dob="31-12-1980">Ram</table>

Inside the head tag we can define these names like this:

<html xmlns='http://www.w3.org/1999/xhtml'

xmlns:b='http://www.google.com/2005/gml/b'>

Now browser will know that the first tag, which is without any colon, has to be handled as per w3.org standard and the second table tag is to be handled as defined by google.com.

By

kalaimathi shivaji

25 october 2008