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'
      xmlns:isbn='urn:ISBN:0-395-36341-6'>
    <title>Cheaper by the Dozen</title>
    <isbn:number isbn:type='Hard_Copy'>123456789<isbn:number>
    <notes>
      
      

Best book on XML!

</notes> </book>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact