Introduction to XML Namespaces Web Engineering, SS 2007 Tomáš Pitner.

Slides:



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

Introduction to the Logical Structure of XML Documents Web Engineering, SS 2007 Tomáš Pitner, Michael Derntl.
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.
17 Apr 2002 XML Namespaces Andy Clark. The Problem Documents use different vocabularies – Example 1: CD music collection – Example 2: online order transaction.
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.
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 20 Novembre 2009.
XML Namespaces Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
XML Name spaces. Different people may invent similar tag names Here is an XML element describing a piece of furniture: table99 dining table Here.
Tutorial 9 Working with XHTML
Lecture 13. The various node tests also work on this axis: eg node() This book has descendant-or- self nodes As expected, text nodes are included in the.
Lecture 13. The various node tests also work on this axis: eg node() This book has descendant-or- self nodes As expected, text nodes are included in the.
2/9/00 EECS 684: Current Topics in Databases1 ( W3C Working Draft 17 December 1999 )
XML Namespaces Andrey Smirnov CSCI 7818 September 21, 2000.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
26-Jun-15 XML. 2 HTML and XML, I XML stands for eXtensible Markup Language HTML is used to mark up text so it can be displayed to users XML is used to.
XP New Perspectives on XML, 2nd Edition Tutorial 2 1 TUTORIAL 2 WORKING WITH NAMESPACES.
Unit 4 – XML Schema XML - Level I Basic.
Tutorial 2: XML Working with Namespaces. COMBINING XML VOCABULARIES IN A COMPOUND DOCUMENT Section 2.1.
Topics The "bigger picture" –The "XML sales pitch" –XML/XHTML vs. SGML/HTML –XML in electronic publishing –XML and the future, web 2.0 XML basics: –Building.
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.
Writing Your Last DTD ? Alex Brown Griffin Brown Digital Publishing Ltd.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
Introduction to XPath Web Engineering, SS 2007 Tomáš Pitner.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 9: Working With XHTML.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
CSE3201 XML Namespace. 2 What is a namespace? An XML namespace is a collection of element type and attribute names.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
University of Nottingham School of Computer Science & Information Technology Introduction to XML 1. The XML Language Tim Brailsford.
An OO schema language for XML SOX W3C Note 30 July 1999.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP New Perspectives on XML, 2nd Edition Tutorial 2 1 TUTORIAL 2 WORKING WITH NAMESPACES.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
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.
XML Schema (W3C) Thanks to Jussi Pohjolainen TAMK University of Applied Sciences.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
COP 3813 Intro to Internet Computing Prof. Roy Levow XML.
1 Compound Documents: Combining XML Vocabularies.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Tutorial 2: XML Working with Namespaces. 2 Name Collision This figure shows two documents each with a Name element.
Unit 3 — Advanced Internet Technologies Lesson 10 — Introduction to XHTML.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
XML for Scientific Applications Marlon Pierce ERDC Tutorial August
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
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)
Beginning XML 4th Edition. Chapter 3: XML Namespaces.
1 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
TEI 工作坊 TEI and Images October The Concept.
CITA 330 Section 3 XHTML.
Tutorial 9 Working with XHTML
Namespace Review 21-Nov-18.
Namespaces.
Namespace Review 29-Dec-18.
Namespace Review 14-Oct-19.
New Perspectives on XML
Presentation transcript:

Introduction to XML Namespaces Web Engineering, SS 2007 Tomáš Pitner

XML Namespaces – Why? Part of the core XML standards family  Namespaces in XML 1.0 (Second Edition)  W3C Recommendation 16 August 2006 Mean enabling mixing more markups within one document  XHTML with SVG (graphics) fragments  XHTML with MathML (math notation) fragments Each NS is uniquely identified by its URI

XML Namespaces – What? XML NS logically distinguishes so-called namespaces that apply to nodes in the doc  For each NS, a separate schema (markup) may be defined / usually XML Schema, Relax NG…  Not compatible with DTD – if namespaces are used, only limited use of DTD is possible  NS applies only to elements and attributes

XML Namespaces – Default Default namespace  Applies just to elements without prefix  declared by xmlns=“URI” in the element or its ancestor  always the nearest declaration applies!  example: SPÖ

XML Namespaces – Prefixed Prefixed namespace  applies to elements and attributes with the prefix  declared by xmlns:prefix=“URI” in the element or its ancestor  always the nearest declaration applies!  example: SPÖ

XML Namespace Example <staff organization="Bundesregierung xmlns:breg=“ xmlns=" Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP prefix element party is in the namespace attribute url is NOT in ANY namespace (prefixed) namespace declaration default namespace declaration element person is in the namespace

The Specification on W3C  ZVON XMLNS Tutorial  t/index.html t/index.html W3Schools  asp asp XML Namespaces – Resources