SlideShare a Scribd company logo
WEB TECHNOLOGY
XML NAMESPACE
What is XML ?
What is Namespace ?
 A namespace is a set of unique names. Namespace is a mechanisms by which
element and attribute name can be assigned to a group. The namespace is identified
by uri(uniform resource identifiers).
Syntax
 The Namespace starts with the keyword xmlns.
 The word name is the Namespace prefix.
 The URL is the Namespace identifier.
<element xmlns:name=“url”>
XML Namespace
<authors>
<author book type=“Classical”>
<title>web</title>
<type>technology</type>
</author>
</author>
<html>
<head>
<title>web technology</title>
</head>
<body>
………
……..
</body>
</html>
Define elements and
attributes that can be
reused in other schemas or
instance documents without
fear of name collisions.
Combine fragments
from different
documents without
any naming
conflicts.
Write reusable code
modules that can be
invoked for specific
elements and
attributes
ADVANTAGES
Namespace allow the browser to:
 Combine various sources of document
 It helps to identify the source of elements or attributes
 UNIFORM RESOURCE LOCATOR(url): contains a reference for a document or an html page on the web
<?xml version = "1.0" encoding = "UTF-8"?>
<sample xmlns:cont = "www.abcd.com">
<cont:name>Gayathri</cont:name>
<cont:company>abcd</cont:company>
<cont:phone>123-4567</cont:phone>
</cont:contact>
Example for Namespace
<bk:authors xmlns:bk=“http://abcd.com”>
<bk:author book type=“classical”>
<bk:title>web</bk:title>
<bk:type>technology</bk:type>
</bk:author>
</bk:author>
We have added the xmlns: (prefix) attribute
to the root element. We have assigned this
attribute a unique value. This unique value is
usually in the form of a url. This defines a
namespace.
And now that the namespace that have been
defined ,we have added a bk prefix to our
eelement names.
Now when we combine the two documents, the
xml processor will see two different element
names: bktitle(from the xml document) and
title(from the html document).
LOCAL NAMESPACE
 OLD
<bk:author xmlns:bk=“www.abcd.com”>
<bk:author booktype=“classical”>
<bk:title>web</bk:title>
<bk:type>technology</bk:type>
</bk:author>
</bk:author>
 New
<author xmlns:bk=“www.abcd.com”>
<author booktype=“classical”>
<bk:title>web</bk:title>
<type>technology</type>
</author>
</author>
Name conflict happened
only for title tag
Add Namespace only for title
tag
Multiple Name Space
<bk:author xmlns :bk=“www.abcd.com”>
<bk:author booktype=“classical”>
<bk:title>web</bk:title>
<bk:type>technology</bk:type>
<pub:author xmlns pub=“www.efg.com”>
</pub:author>
</bk:author>
</bk:author>
Name Space 1 bk
Name Space 2 pub
THANK YOU!
-S.GAYATHRI

More Related Content

What's hot

WSDL
WSDLWSDL
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
Gil Fink
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
Ankita Totala
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
DrSonali Vyas
 
Xml schema
Xml schemaXml schema
Xml schema
Prabhakaran V M
 
XSLT
XSLTXSLT
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
Ngeam Soly
 
Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHP
Taha Malampatti
 
Ajax ppt
Ajax pptAjax ppt
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
GOPAL BASAK
 
Xml parsers
Xml parsersXml parsers
Xml parsers
Manav Prasad
 
CSS notes
CSS notesCSS notes
CSS notes
Rajendra Prasad
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
baabtra.com - No. 1 supplier of quality freshers
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
Fahim Abdullah
 
DTD
DTDDTD
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
Baskarkncet
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 

What's hot (20)

WSDL
WSDLWSDL
WSDL
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
ADO .Net
ADO .Net ADO .Net
ADO .Net
 
Xml schema
Xml schemaXml schema
Xml schema
 
XSLT
XSLTXSLT
XSLT
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 
Database Connectivity in PHP
Database Connectivity in PHPDatabase Connectivity in PHP
Database Connectivity in PHP
 
Ajax ppt
Ajax pptAjax ppt
Ajax ppt
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
 
Xml parsers
Xml parsersXml parsers
Xml parsers
 
CSS notes
CSS notesCSS notes
CSS notes
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
An Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java ScriptAn Overview of HTML, CSS & Java Script
An Overview of HTML, CSS & Java Script
 
DTD
DTDDTD
DTD
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 

Similar to Xml namespace

Xml part3
Xml part3Xml part3
Xml part3
NOHA AW
 
Chapter 18
Chapter 18Chapter 18
Namespace.pdf
Namespace.pdfNamespace.pdf
Namespace.pdf
João Manuel Correia
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigation
Raghu nath
 
XPATH_XSLT-1.pptx
XPATH_XSLT-1.pptxXPATH_XSLT-1.pptx
XPATH_XSLT-1.pptx
BalasundaramSr
 
DOSUG XML Beans overview by Om Sivanesian
DOSUG XML Beans overview by Om SivanesianDOSUG XML Beans overview by Om Sivanesian
DOSUG XML Beans overview by Om Sivanesian
Matthew McCullough
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Harry Potter
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
James Wong
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Young Alista
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Tony Nguyen
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Hoang Nguyen
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Fraboni Ec
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
Luis Goldster
 
ASP.Net Presentation Part2
ASP.Net Presentation Part2ASP.Net Presentation Part2
ASP.Net Presentation Part2
Neeraj Mathur
 
Ur Lversus Urn
Ur Lversus UrnUr Lversus Urn
Ur Lversus Urn
LiquidHub
 
Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12
RohanMistry15
 
Xml processing in scala
Xml processing in scalaXml processing in scala
Xml processing in scala
Knoldus Inc.
 
Xml processing in scala
Xml processing in scalaXml processing in scala
Xml processing in scala
Neelkanth Sachdeva
 
Unit 2.3
Unit 2.3Unit 2.3
SCDJWS 6. REST JAX-P
SCDJWS 6. REST  JAX-PSCDJWS 6. REST  JAX-P
SCDJWS 6. REST JAX-P
Francesco Ierna
 

Similar to Xml namespace (20)

Xml part3
Xml part3Xml part3
Xml part3
 
Chapter 18
Chapter 18Chapter 18
Chapter 18
 
Namespace.pdf
Namespace.pdfNamespace.pdf
Namespace.pdf
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigation
 
XPATH_XSLT-1.pptx
XPATH_XSLT-1.pptxXPATH_XSLT-1.pptx
XPATH_XSLT-1.pptx
 
DOSUG XML Beans overview by Om Sivanesian
DOSUG XML Beans overview by Om SivanesianDOSUG XML Beans overview by Om Sivanesian
DOSUG XML Beans overview by Om Sivanesian
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
ASP.Net Presentation Part2
ASP.Net Presentation Part2ASP.Net Presentation Part2
ASP.Net Presentation Part2
 
Ur Lversus Urn
Ur Lversus UrnUr Lversus Urn
Ur Lversus Urn
 
Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12Advanced Web Programming Chapter 12
Advanced Web Programming Chapter 12
 
Xml processing in scala
Xml processing in scalaXml processing in scala
Xml processing in scala
 
Xml processing in scala
Xml processing in scalaXml processing in scala
Xml processing in scala
 
Unit 2.3
Unit 2.3Unit 2.3
Unit 2.3
 
SCDJWS 6. REST JAX-P
SCDJWS 6. REST  JAX-PSCDJWS 6. REST  JAX-P
SCDJWS 6. REST JAX-P
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 

Xml namespace

  • 3. What is Namespace ?  A namespace is a set of unique names. Namespace is a mechanisms by which element and attribute name can be assigned to a group. The namespace is identified by uri(uniform resource identifiers).
  • 4. Syntax  The Namespace starts with the keyword xmlns.  The word name is the Namespace prefix.  The URL is the Namespace identifier. <element xmlns:name=“url”>
  • 5. XML Namespace <authors> <author book type=“Classical”> <title>web</title> <type>technology</type> </author> </author> <html> <head> <title>web technology</title> </head> <body> ……… …….. </body> </html>
  • 6. Define elements and attributes that can be reused in other schemas or instance documents without fear of name collisions. Combine fragments from different documents without any naming conflicts. Write reusable code modules that can be invoked for specific elements and attributes ADVANTAGES
  • 7. Namespace allow the browser to:  Combine various sources of document  It helps to identify the source of elements or attributes  UNIFORM RESOURCE LOCATOR(url): contains a reference for a document or an html page on the web <?xml version = "1.0" encoding = "UTF-8"?> <sample xmlns:cont = "www.abcd.com"> <cont:name>Gayathri</cont:name> <cont:company>abcd</cont:company> <cont:phone>123-4567</cont:phone> </cont:contact>
  • 8. Example for Namespace <bk:authors xmlns:bk=“http://abcd.com”> <bk:author book type=“classical”> <bk:title>web</bk:title> <bk:type>technology</bk:type> </bk:author> </bk:author> We have added the xmlns: (prefix) attribute to the root element. We have assigned this attribute a unique value. This unique value is usually in the form of a url. This defines a namespace. And now that the namespace that have been defined ,we have added a bk prefix to our eelement names. Now when we combine the two documents, the xml processor will see two different element names: bktitle(from the xml document) and title(from the html document).
  • 9. LOCAL NAMESPACE  OLD <bk:author xmlns:bk=“www.abcd.com”> <bk:author booktype=“classical”> <bk:title>web</bk:title> <bk:type>technology</bk:type> </bk:author> </bk:author>  New <author xmlns:bk=“www.abcd.com”> <author booktype=“classical”> <bk:title>web</bk:title> <type>technology</type> </author> </author> Name conflict happened only for title tag Add Namespace only for title tag
  • 10. Multiple Name Space <bk:author xmlns :bk=“www.abcd.com”> <bk:author booktype=“classical”> <bk:title>web</bk:title> <bk:type>technology</bk:type> <pub:author xmlns pub=“www.efg.com”> </pub:author> </bk:author> </bk:author> Name Space 1 bk Name Space 2 pub