SlideShare a Scribd company logo
XML Namespaces
<?xml version=„1.0‟ encoding=“UTF-8”?>

<!-- Human Resource data-->

<HumanResource>

  <!-- Information for a person-->
  <Person id=„1‟ slary=“500”>
     <FirstName>John</FirstName>
     <MidName></MidName>
     <LastName>Doe</LastName>
     <Position>Manager</Position>
  </Person>
</HumanResource>
                                         Document Type
XML Namespaces
<?xml version=”1.0”?>
<person>
   <name>
      <title>Sir</title>
      <first>John</first>
      <middle>Fitzgerald Johansen</middle>
      <last>Doe</last>
   </name>
   <position>Vice President of Marketing</position>
   <résumé>
      <html>
      <head><title>Resume of John Doe</title></head>
      <body>
      <h1>John Doe</h1>
      <p>John‟s a great guy, you know?</p>
      </body>
      </html>
   </résumé>
</person>
                                                       ©Textbook – 106 page
                                                         ©Textbook – 68 page
<?xml version=”1.0”?>
<person>
   <name>
      <title>Sir</title>
      <first>John</first>
      <middle>Fitzgerald Johansen</middle>
      <last>Doe</last>
   </name>
   <position>Vice President of Marketing</position>
   <résumé>
      <html>
      <head><title>Resume of John Doe</title></head>
      <body>
      <h1>John Doe</h1>
      <p>John‟s a great guy, you know?</p>
      </body>
      </html>
   </résumé>
</person>
                                                       ©Textbook – 68 page
<?xml version=”1.0”?>
<pers:person>
   <pers:name>
      <pers:title>Sir</pers:title>
      <pers:first>John</pers:first>
      <pers:middle>Fitzgerald Johansen</pers:middle>
      <pers:last>Doe</pers:last>
   </pers:name>
   <pers:position>Vice President of Marketing</pers:position>
   <pers:résumé>
      <xhtml:html>
         <xhtml:head><xhtml:title>Resume of John Doe</xhtml:title>
         </xhtml:head>
         <xhtml:body>
         <xhtml:h1>John Doe</xhtml:h1>
         <xhtml:p>John‟s a great guy, you know?</xhtml:p>
         </xhtml:body>
      </xhtml:html>
   </pers:résumé>
</pers:person>                                        ©Textbook – 69 page
<?xml version=”1.0”?>
<pers:person>
   <pers:name>
      <pers:title>Sir</pers:title>
      <pers:first>John</pers:first>
      <pers:middle>Fitzgerald Johansen</pers:middle>
      <pers:last>Doe</pers:last>
   </pers:name>
   <pers:position>Vice President of Marketing</pers:position>
   <pers:résumé>
      <xhtml:html>
         <xhtml:head><xhtml:title>Resume of John Doe</xhtml:title>
         </xhtml:head>
         <xhtml:body>
         <xhtml:h1>John Doe</xhtml:h1>
         <xhtml:p>John‟s a great guy, you know?</xhtml:p>
         </xhtml:body>
      </xhtml:html>
   </pers:résumé>
</pers:person>                                        ©Textbook – 69 page
<?xml version=”1.0”?>
<pers:person xmlns:pers=“http://www.example.com/pers”
             xmlns:xhtml=“http://www.example.com/xhtml” >
   <pers:name>
      <pers:title>Sir</pers:title>
      <pers:first>John</pers:first>
      <pers:middle>Fitzgerald Johansen</pers:middle>
      <pers:last>Doe</pers:last>
   </pers:name>
   <pers:position>Vice President of Marketing</pers:position>
   <pers:résumé>
      <xhtml:html><xhtml:head><xhtml:title>Resume of John Doe</xhtml:title>
         </xhtml:head>
         <xhtml:body>
            <xhtml:h1>John Doe</xhtml:h1>
            <xhtml:p>John‟s a great guy, you know?</xhtml:p>
         </xhtml:body>
      </xhtml:html>
   </pers:résumé>
</pers:person>                                        ©Textbook – 73 page
<?xml version=”1.0”?>
<person xmlns=“http://www.example.com/pers”
        xmlns:xhtml=“http://www.example.com/xhtml” >
   <name>
      <title>Sir</title>
      <first>John</first>
      <middle>Fitzgerald Johansen</middle>
      <last>Doe</last>
   </name>
   <position>Vice President of Marketing</position>
   <résumé>
      <xhtml:html><xhtml:head><xhtml:title>Resume of John Doe</xhtml:title>
         </xhtml:head>
         <xhtml:body>
            <xhtml:h1>John Doe</xhtml:h1>
            <xhtml:p>John‟s a great guy, you know?</xhtml:p>
         </xhtml:body>
      </xhtml:html>
   </résumé>
</person>                                             ©Textbook – 76 page
XML Namespaces
not point
to something
XML Namespaces

More Related Content

DOC
Html css java script
PPTX
Session no 1 html
RTF
Gd 305 1 133 No27 A.Txt.Xhtml
PDF
Base HTML & CSS
PPT
3 xml namespaces and xml schema
PPT
4 xml namespaces and xml schema
PDF
GANs and Applications
PDF
Scrum - An introduction
Html css java script
Session no 1 html
Gd 305 1 133 No27 A.Txt.Xhtml
Base HTML & CSS
3 xml namespaces and xml schema
4 xml namespaces and xml schema
GANs and Applications
Scrum - An introduction

More from Hoang Nguyen (20)

PDF
ORM in Django
PDF
Introduction to Cross-platform App Development
PDF
Conistency of random forests
PDF
Trust - Digital Signature
PDF
Key Exchange
PDF
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
PDF
Stream ciphers
PDF
Classical ciphers
PDF
Confidentiality
PDF
Information, Data and Decision Making
PDF
Multiple processor systems
PDF
Multiprocessor Systems
PDF
Introduction to AOS course
PDF
Background Knowledge
PDF
Introduction to Information Security Course
PDF
Introduction to CNS Course
PDF
Dynamic Testing
PDF
Nosql intro
PDF
Static Testing
PDF
Testing in the lifecycle
ORM in Django
Introduction to Cross-platform App Development
Conistency of random forests
Trust - Digital Signature
Key Exchange
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
Stream ciphers
Classical ciphers
Confidentiality
Information, Data and Decision Making
Multiple processor systems
Multiprocessor Systems
Introduction to AOS course
Background Knowledge
Introduction to Information Security Course
Introduction to CNS Course
Dynamic Testing
Nosql intro
Static Testing
Testing in the lifecycle
Ad

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Machine Learning_overview_presentation.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Electronic commerce courselecture one. Pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Encapsulation_ Review paper, used for researhc scholars
20250228 LYD VKU AI Blended-Learning.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Network Security Unit 5.pdf for BCA BBA.
Machine Learning_overview_presentation.pptx
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Electronic commerce courselecture one. Pdf
Getting Started with Data Integration: FME Form 101
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Advanced methodologies resolving dimensionality complications for autism neur...
Ad

XML Namespaces

  • 2. <?xml version=„1.0‟ encoding=“UTF-8”?> <!-- Human Resource data--> <HumanResource> <!-- Information for a person--> <Person id=„1‟ slary=“500”> <FirstName>John</FirstName> <MidName></MidName> <LastName>Doe</LastName> <Position>Manager</Position> </Person> </HumanResource> Document Type
  • 4. <?xml version=”1.0”?> <person> <name> <title>Sir</title> <first>John</first> <middle>Fitzgerald Johansen</middle> <last>Doe</last> </name> <position>Vice President of Marketing</position> <résumé> <html> <head><title>Resume of John Doe</title></head> <body> <h1>John Doe</h1> <p>John‟s a great guy, you know?</p> </body> </html> </résumé> </person> ©Textbook – 106 page ©Textbook – 68 page
  • 5. <?xml version=”1.0”?> <person> <name> <title>Sir</title> <first>John</first> <middle>Fitzgerald Johansen</middle> <last>Doe</last> </name> <position>Vice President of Marketing</position> <résumé> <html> <head><title>Resume of John Doe</title></head> <body> <h1>John Doe</h1> <p>John‟s a great guy, you know?</p> </body> </html> </résumé> </person> ©Textbook – 68 page
  • 6. <?xml version=”1.0”?> <pers:person> <pers:name> <pers:title>Sir</pers:title> <pers:first>John</pers:first> <pers:middle>Fitzgerald Johansen</pers:middle> <pers:last>Doe</pers:last> </pers:name> <pers:position>Vice President of Marketing</pers:position> <pers:résumé> <xhtml:html> <xhtml:head><xhtml:title>Resume of John Doe</xhtml:title> </xhtml:head> <xhtml:body> <xhtml:h1>John Doe</xhtml:h1> <xhtml:p>John‟s a great guy, you know?</xhtml:p> </xhtml:body> </xhtml:html> </pers:résumé> </pers:person> ©Textbook – 69 page
  • 7. <?xml version=”1.0”?> <pers:person> <pers:name> <pers:title>Sir</pers:title> <pers:first>John</pers:first> <pers:middle>Fitzgerald Johansen</pers:middle> <pers:last>Doe</pers:last> </pers:name> <pers:position>Vice President of Marketing</pers:position> <pers:résumé> <xhtml:html> <xhtml:head><xhtml:title>Resume of John Doe</xhtml:title> </xhtml:head> <xhtml:body> <xhtml:h1>John Doe</xhtml:h1> <xhtml:p>John‟s a great guy, you know?</xhtml:p> </xhtml:body> </xhtml:html> </pers:résumé> </pers:person> ©Textbook – 69 page
  • 8. <?xml version=”1.0”?> <pers:person xmlns:pers=“http://www.example.com/pers” xmlns:xhtml=“http://www.example.com/xhtml” > <pers:name> <pers:title>Sir</pers:title> <pers:first>John</pers:first> <pers:middle>Fitzgerald Johansen</pers:middle> <pers:last>Doe</pers:last> </pers:name> <pers:position>Vice President of Marketing</pers:position> <pers:résumé> <xhtml:html><xhtml:head><xhtml:title>Resume of John Doe</xhtml:title> </xhtml:head> <xhtml:body> <xhtml:h1>John Doe</xhtml:h1> <xhtml:p>John‟s a great guy, you know?</xhtml:p> </xhtml:body> </xhtml:html> </pers:résumé> </pers:person> ©Textbook – 73 page
  • 9. <?xml version=”1.0”?> <person xmlns=“http://www.example.com/pers” xmlns:xhtml=“http://www.example.com/xhtml” > <name> <title>Sir</title> <first>John</first> <middle>Fitzgerald Johansen</middle> <last>Doe</last> </name> <position>Vice President of Marketing</position> <résumé> <xhtml:html><xhtml:head><xhtml:title>Resume of John Doe</xhtml:title> </xhtml:head> <xhtml:body> <xhtml:h1>John Doe</xhtml:h1> <xhtml:p>John‟s a great guy, you know?</xhtml:p> </xhtml:body> </xhtml:html> </résumé> </person> ©Textbook – 76 page