What are XML namespaces? Please include some examples.

Pramod Hirole

XML namespaces are simple way to give unique names to elements and attributes used in XML document. Namespaces enables the programmers to select the XML tags for processing depending upon the application requirment.

<?xml version="1.0"?>

<book xmlns='www.amazon.com:books'
    <title>Cheaper by the Dozen</title>
    <isbn:number isbn:type='Hard_Copy'>123456789<isbn:number>

Best book on XML!

</notes> </book>