Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.

Slides:



Advertisements
Similar presentations
XML/RDF 2 RDF/XML Resource Description Framework Resource Property Value c:semanticweb c:author c:corby Syntaxe XML.
Advertisements

Copyright © 1999, Architag International Corporation. All rights reserved. Use without express written permission from Architag International Corporation.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 The Web Wizards Guide to PHP by David A. Lash.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 Cascading Style Sheets Programming the World Wide Web Fourth edition.
Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Copyright © 2003 Pearson Education, Inc. Slide 4-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Transforming XML XMLNamespaces, XSLT. XML Namespaces Sometimes it is necessary to mix XML elements –Different types of content –Use of markup to convey.
Dr. Alexandra I. Cristea CS 253: Topics in Database Systems: XPath, NameSpaces.
An Introduction to XML and Web Technologies XML Documents
1 WSDL: Web Service Description Language Gary Sharp Mike Breakiron.
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
Dr. Alexandra I. Cristea XPath and Namespaces.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 3: XML Namespaces. Chapter 3 Objectives Why you need namespaces What namespaces are, conceptually and how they solve the problem of naming clashes.
17 Apr 2002 XML Namespaces Andy Clark. The Problem Documents use different vocabularies – Example 1: CD music collection – Example 2: online order transaction.
Namespace in XML Transparency No. 1 Namespace in XML Cheng-Chia Chen.
XML Namespaces Each schema file associated with a URL to uniquely identify where elements come from – Like packages in Java
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
CIS 375—Web App Dev II SOAP.
SOAP SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol * SOAP is a communication protocol * SOAP is for communication.
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 20 Novembre 2009.
XML Namespaces Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
RDF Tutorial.
An Introduction to XML Based on the W3C XML Recommendations.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 9- 1.
XML Namespaces Andrey Smirnov CSCI 7818 September 21, 2000.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
XP New Perspectives on XML, 2nd Edition Tutorial 2 1 TUTORIAL 2 WORKING WITH NAMESPACES.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Introduction to XML This material is based heavily on the tutorial by the same name at
1 understanding xml namespaces. 2 understanding namespaces Namespaces are the source of much confusion in XML, especially for those new to the technology.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Working with Namespaces Combining XML Vocabularies in a Compound Document.
XML 2nd EDITION Tutorial 2 Working With Namespaces.
WORKING WITH NAMESPACES
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 – Schemas Outline 7.1Introduction 7.2Schemas vs. DTDs 7.3Microsoft XML Schema: Describing Elements.
Skip 2007 Current Issues in MIS The XML Language Foundation f - Clinton E. White, Jr Professor of Accounting & MIS Lerner College of B&E University.
Session IV Chapter 9 – XML Schemas
1 Dr Alexiei Dingli XML Technologies XML Advanced.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
XP New Perspectives on XML, 2nd Edition Tutorial 2 1 TUTORIAL 2 WORKING WITH NAMESPACES.
Advanced Accounting Information Systems Day 31 XML Language Foundation November 6, 2009.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 12 Working with Namespaces Combining XML Vocabularies in a Compound Document.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Working with XML Schemas ©NIITeXtensible Markup Language/Lesson 3/Slide 1 of 36 Objectives In this lesson, you will learn to: * Declare attributes in an.
1 Compound Documents: Combining XML Vocabularies.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
Tutorial 2: XML Working with Namespaces. 2 Name Collision This figure shows two documents each with a Name element.
PART 1 XML Basics. Slide 2 Why XML Here? You need to understand the basics of XML to do much with Android All of they layout and configuration files are.
XML Namespaces In this first lesson XML Namespaces, you will learn to:
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
CITA 330 Section 4 XML Schema. XML Schema (XSD) An alternative industry standard for defining XML dialects More expressive than DTD Using XML syntax Promoting.
Beginning XML 4th Edition. Chapter 3: XML Namespaces.
WORKING WITH NAMESPACES
Namespace Review 21-Nov-18.
Namespace Review 29-Dec-18.
Namespace Review 14-Oct-19.
Presentation transcript:

Copyright © 2003 Pearson Education, Inc. Slide 5-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide to XML by Cheryl M. Hughes

Copyright © 2003 Pearson Education, Inc. Slide 5-2 CHAPTER 5 Namespaces in XML

Copyright © 2003 Pearson Education, Inc. Slide 5-3 Overview of Namespaces A namespace is a group, or set, of element and attribute names that belong to or describe a document type Each name in a namespace must be unique within that namespace A naming collision occurs when an element name has two different meanings within a document XML namespaces are used to avoid naming collisions and to assign elements to different groupings within a document

Copyright © 2003 Pearson Education, Inc. Slide 5-4 Naming Collision Example Introduction to XML 4 Jane Smith 5 Monday, 5:30-7:30 6 This course covers the basics of XML… 9 The Web Wizards Guide to XML 10 C Hughes 11 Addison Wesley 14 15

Copyright © 2003 Pearson Education, Inc. Slide 5-5 Namespace Syntax Namespaces must be declared before they are used Namespaces are declared on elements in the start tag Two types of namespace declarations: Default: xmlns=URI xmlns= Prefixed: xmlns:prefix=URI xmlns:xlink= Prefixed namespaces are referred to as qualified names Both default and prefixed declarations can exist within a single document

Copyright © 2003 Pearson Education, Inc. Slide 5-6 Uniform Resource Identifier (URI) URIs can take two forms: Uniform Resource Locator (URL) Example: Uniform Resource Name (URN) Example: urn:local.gov:book Either form of URI can be used with both default and prefixed namespaces

Copyright © 2003 Pearson Education, Inc. Slide 5-7 Scope of a Namespace The scope of a namespace determines which elements can belong to a namespace Namespace scope cannot ascend above the element it is declared on within the document hierarchy Namespaces can be declared on sibling and child elements of the element on which it is declared When namespaces are declared on elements outside of the proper hierarchy, and out-of- scope error occurs

Copyright © 2003 Pearson Education, Inc. Slide 5-8 Default Namespace Example 1 2 ACME Company Newsletter 3 4 Company Employees Participate in 5K Run 5 J. Fraser 6 7 July, All elements in this document belong to the namespace

Copyright © 2003 Pearson Education, Inc. Slide 5-9 Prefixed Namespace Example 1 2 ACME Company Newsletter 3 4 Company Employees Participate in 5K Run 5 J. Frasier 6 7 July, Only the and elements belong to the namespace because they include the prefix flag