Share
VIDEOS 1 TO 50
XML Tutorial   39 Introduction to Namespaces
XML Tutorial 39 Introduction to Namespaces
Published: 2013/02/19
Channel: mrfizzlebutt
13 XML namespaces
13 XML namespaces
Published: 2014/12/28
Channel: SAJOL AHMED
XML Namespace with Example in Hindi | How to Resolve Element Name Conflict
XML Namespace with Example in Hindi | How to Resolve Element Name Conflict
Published: 2017/03/18
Channel: Easy Engineering Classes
XML Namespaces (from JPassion.com)
XML Namespaces (from JPassion.com)
Published: 2014/04/25
Channel: Sang Shin
XSD NameSpace Concepts | XML Tutorial | Mr. Sarish B
XSD NameSpace Concepts | XML Tutorial | Mr. Sarish B
Published: 2016/09/27
Channel: Naresh i Technologies
XML: Namespaces
XML: Namespaces
Published: 2011/07/25
Channel: Educator.com
XML Tutorial   41 Creating & Using Namespaces
XML Tutorial 41 Creating & Using Namespaces
Published: 2013/02/19
Channel: mrfizzlebutt
Introduction to XML namespaces Urdu/Hindi
Introduction to XML namespaces Urdu/Hindi
Published: 2015/12/13
Channel: AssadUllahCh
XML Tutorial   42 Namespaces & Schemas
XML Tutorial 42 Namespaces & Schemas
Published: 2013/02/19
Channel: mrfizzlebutt
Applying an XML Namespace
Applying an XML Namespace
Published: 2012/07/09
Channel: Dale Wallentine
XML Namespaces Introduction
XML Namespaces Introduction
Published: 2017/03/08
Channel: Bharath Thippireddy dot com
How Do I  Use Multiple Namespaces in XML Ports in Microsoft Dynamics NAV 2016 1
How Do I Use Multiple Namespaces in XML Ports in Microsoft Dynamics NAV 2016 1
Published: 2017/11/27
Channel: Perfect Dynamics Ltd
Default XML Namespace
Default XML Namespace
Published: 2012/07/09
Channel: Dale Wallentine
XML Namespaces
XML Namespaces
Published: 2013/10/20
Channel: Bharath Thippireddy dot com
Namespaces em XML
Namespaces em XML
Published: 2010/06/19
Channel: André Santanchè
Namespaces in XML documents
Namespaces in XML documents
Published: 2012/10/27
Channel: merigrrl
Android 4.4 Tutorials 1 Secret Of XML NameSpace By Anant Shah 387001
Android 4.4 Tutorials 1 Secret Of XML NameSpace By Anant Shah 387001
Published: 2014/02/12
Channel: Anant shah
05  Prefix and Namespace (Section 4 - XML)
05 Prefix and Namespace (Section 4 - XML)
Published: 2015/02/01
Channel: Web Bluffer
Demo: Using Namespaces With W3C XML Schemas
Demo: Using Namespaces With W3C XML Schemas
Published: 2016/03/24
Channel: Ligent Tutorials
LINQ to XML Namespaces and Names
LINQ to XML Namespaces and Names
Published: 2012/12/13
Channel: Eric White
UWP 007 | Understanding XAML Schemas and Namespace Declarations
UWP 007 | Understanding XAML Schemas and Namespace Declarations
Published: 2015/10/08
Channel: Collin Blake
XSLT with XML and namespaces
XSLT with XML and namespaces
Published: 2014/02/22
Channel: frank coyle
XML Tutorial   21 What is Schema
XML Tutorial 21 What is Schema
Published: 2013/02/19
Channel: mrfizzlebutt
XML Video Tutorial 6
XML Video Tutorial 6
Published: 2012/06/17
Channel: Derek Banas
XML Namespaces: Introducción
XML Namespaces: Introducción
Published: 2013/11/07
Channel: Introducción a XML (iXML)
XML Namespaces
XML Namespaces
Published: 2012/07/09
Channel: Dale Wallentine
06 Working with XML Namespaces
06 Working with XML Namespaces
Published: 2017/03/28
Channel: hussam alzahabi
XML Namespaces Part 2
XML Namespaces Part 2
Published: 2013/12/18
Channel: Mahesh mohan kumar
XML PART 05 Prefix and Namespace
XML PART 05 Prefix and Namespace
Published: 2016/02/14
Channel: TECH Studio
XML Tutorial   50 Introduction to Namespaces
XML Tutorial 50 Introduction to Namespaces
Published: 2013/02/19
Channel: mrfizzlebutt
XML Namespaces: Cómo se usa
XML Namespaces: Cómo se usa
Published: 2013/11/07
Channel: Introducción a XML (iXML)
PowerShell, Select-Xml and XPath Namespaces
PowerShell, Select-Xml and XPath Namespaces
Published: 2011/07/21
Channel: StartAutomating
namespaces in XML
namespaces in XML
Published: 2013/06/16
Channel: Rajesh vidyaniketan
C# tips and tricks 9 - How to read XML file using C# | Xml Document | Xml Text Reader | System.Xml
C# tips and tricks 9 - How to read XML file using C# | Xml Document | Xml Text Reader | System.Xml
Published: 2017/05/19
Channel: Ankpro Training
Xml namespace ppt1
Xml namespace ppt1
Published: 2009/06/30
Channel: sivakumarmanam
Curso de XML Clase 06 NameSpaces
Curso de XML Clase 06 NameSpaces
Published: 2016/10/26
Channel: JAOR SOFTWARE
XML in C# - XmlReader
XML in C# - XmlReader
Published: 2012/01/31
Channel: OnMatthias
Lecture 6: Namespaces in XML 1.1, SVG 1.1, and XSL - CSCI E-259 Spring 2007
Lecture 6: Namespaces in XML 1.1, SVG 1.1, and XSL - CSCI E-259 Spring 2007
Published: 2015/08/11
Channel: CS259
XMl XSD AND NAMESPACES Quick Start PDFs
XMl XSD AND NAMESPACES Quick Start PDFs
Published: 2016/12/23
Channel: Bharath Thippireddy dot com
Computer Science E-259 Namespaces in XML, SVG, and XSL
Computer Science E-259 Namespaces in XML, SVG, and XSL
Published: 2013/08/23
Channel: Open Education and Culture
XML Namespaces Part 1
XML Namespaces Part 1
Published: 2013/12/18
Channel: Mahesh mohan kumar
MSSQL - How to Query XML in SQL Server
MSSQL - How to Query XML in SQL Server
Published: 2014/05/06
Channel: CodeCowboyOrg
013 XML namespaces
013 XML namespaces
Published: 2016/03/31
Channel: top video
Part 1   LINQ to XML
Part 1 LINQ to XML
Published: 2014/08/18
Channel: kudvenkat
targetNamespace, XSD TUTORIAL, PART 6
targetNamespace, XSD TUTORIAL, PART 6
Published: 2017/03/09
Channel: computeremotion.com
Part 2   Creating an XML document using in memory collection of objects
Part 2 Creating an XML document using in memory collection of objects
Published: 2014/08/19
Channel: kudvenkat
Part 6   WCF DataContract and DataMember
Part 6 WCF DataContract and DataMember
Published: 2013/11/24
Channel: kudvenkat
xml-namespaces.avi
xml-namespaces.avi
Published: 2011/10/19
Channel: lantiga moreno
[완결판] XML 강좌 3 -  XML속성, Namespace, XML 보여주기, XSLT , XPath,XLink , XPointer , DTD, Schema ,중간 고사
[완결판] XML 강좌 3 - XML속성, Namespace, XML 보여주기, XSLT , XPath,XLink , XPointer , DTD, Schema ,중간 고사
Published: 2015/10/29
Channel: 샵투월드(shop2world) TV : 해외 직구(직접 구매) 세일 정보 등
NAMESPACE, XML TUTORIAL, PART 25
NAMESPACE, XML TUTORIAL, PART 25
Published: 2016/11/13
Channel: computeremotion.com
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
  (Redirected from XML namespaces)
Jump to: navigation, search

XML namespaces are used for providing uniquely named elements and attributes in an XML document. They are defined in a W3C recommendation.[1][2] An XML instance may contain element or attribute names from more than one XML vocabulary. If each vocabulary is given a namespace, the ambiguity between identically named elements or attributes can be resolved.

A simple example would be to consider an XML instance that contained references to a customer and an ordered product. Both the customer element and the product element could have a child element named id. References to the id element would therefore be ambiguous; placing them in different namespaces would remove the ambiguity.

Namespace names[edit]

A namespace name is a uniform resource identifier (URI). Typically, the URI chosen for the namespace of a given XML vocabulary describes a resource under the control of the author or organization defining the vocabulary, such as a URL for the author's Web server. However, the namespace specification does not require nor suggest that the namespace URI be used to retrieve information; it is simply treated by an XML parser as a string. For example, the document at http://www.w3.org/1999/xhtml itself does not contain any code. It simply describes the XHTML namespace to human readers. Using a URI (such as "http://www.w3.org/1999/xhtml") to identify a namespace, rather than a simple string (such as "xhtml"), reduces the probability of different namespaces using duplicate identifiers.

Although the term namespace URI is widespread, the W3C Recommendation refers to it as the namespace name. The specification is not entirely prescriptive about the precise rules for namespace names (it does not explicitly say that parsers must reject documents where the namespace name is not a valid Uniform Resource Identifier), and many XML parsers allow any character string to be used. In version 1.1 of the recommendation, the namespace name becomes an Internationalized Resource Identifier, which licenses the use of non-ASCII characters that in practice were already accepted by nearly all XML software. The term namespace URI persists, however, not only in popular usage, but also in many other specifications from W3C and elsewhere.

Following publication of the Namespaces recommendation, there was an intensive debate about how a relative URI should be handled, with some intensely arguing that it should simply be treated as a character string, and others arguing with conviction that it should be turned into an absolute URI by resolving it against the base URI of the document.[3] The result of the debate was a ruling from W3C that relative URIs were deprecated.[4]

The use of URIs taking the form of URLs in the http scheme (such as http://www.w3.org/1999/xhtml) is common, despite the absence of any formal relationship with the HTTP protocol. The Namespaces specification does not say what should happen if such a URL is dereferenced (that is, if software attempts to retrieve a document from this location). One convention adopted by some users is to place an RDDL document at the location.[5] In general, however, users should assume that the namespace URI is simply a name, not the address of a document on the Web.

Namespace declaration[edit]

An XML namespace is declared using the reserved XML attribute xmlns or xmlns:prefix, the value of which must be a valid namespace name.

For example, the following declaration maps the "xhtml:" prefix to the XHTML namespace:

xmlns:xhtml="http://www.w3.org/1999/xhtml"

Any element or attribute whose name starts with the prefix "xhtml:" is considered to be in the XHTML namespace, if it or an ancestor has the above namespace declaration.

It is also possible to declare a default namespace. For example:

xmlns="http://www.w3.org/1999/xhtml"

In this case, any element without a namespace prefix is considered to be in the XHTML namespace, if it or an ancestor has the above default namespace declaration.

If there is no default namespace declaration in scope, the namespace name has no value.[6] In that case, an element without an explicit namespace prefix is considered not to be in any namespace.

Attributes are never subject to the default namespace. An attribute without an explicit namespace prefix is considered not to be in any namespace.

Namespaces in APIs and XML object models[edit]

Different specifications have taken different approaches on how namespace information is presented to applications.

Nearly all programming models allow the name of an element or attribute node to be retrieved as a three-part name: the local name, the namespace prefix, and the namespace URI. Applications should avoid attaching any significance to the choice of prefix, but the information is provided because it can be helpful to human readers. Names are considered equal if the namespace URI and local name match.

In addition, most models provide some way of determining which namespaces have been declared for a given element. This information is needed because some XML vocabularies allow qualified names (containing namespace prefixes) to appear in the content of elements or attributes, as well as in their names. There are three main ways this information can be provided:

  • As attribute nodes named "xmlns" or "xmlns:xxx", exactly as the namespaces are written in the source XML document. This is the model presented by DOM.
  • As namespace declarations: distinguished from attributes, but corresponding one-to-one with the relevant attributes in the source XML document. This is the model presented by JDOM.
  • As in-scope namespace bindings: in this model, the application is able to determine which namespaces are in scope for any given element, but is not able to determine which elements contain the actual declarations. This is the model used in XPath, XSLT, and XQuery.

See also[edit]

References[edit]

  1. ^ Bray, Tim; Dave Hollander; Andrew Layman; Richard Tobin; Henry S. Thompson (December 2009). "Namespaces in XML 1.0". W3C. Retrieved 9 October 2010. 
  2. ^ "XML and Semantic Web W3C Standards Timeline" (PDF). 
  3. ^ Dodds, Leigh (24 May 2000). "News from the trenches". O'Reilly Media, Inc. 
  4. ^ Connolly, Dan (11 Sep 2000), W3C XML Plenary decision on relative URI references in namespace declarations 
  5. ^ Harold, Elliotte Rusty (20 Feb 2001), RDDL Me This: What Does a Namespace URL Locate? 
  6. ^ "Namespaces in XML 1.0 (Third Edition)". W3C. Retrieved 28 April 2017. 

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license