From 8c25114d7a9afc271bf6887622d6ce51a32cb1ae Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sun, 17 May 2009 00:46:05 -0400 Subject: [PATCH] clarifications in xml crash course --- xml.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml.html b/xml.html index 94e0ea9..67151bf 100644 --- a/xml.html +++ b/xml.html @@ -109,7 +109,7 @@ mark{display:inline} </foo> -

Elements can have attributes, which are name-value pairs. Attributes are listed within the start tag of an element. Attribute names can not be repeated on the same element (although they can appear on different elements). Attribute values must be quoted. +

Elements can have attributes, which are name-value pairs. Order of attributes is not significant; an element’s attributes form an unordered set of keys and values, like a Python dictionary. Attributes are listed within the start tag of an element. Attribute names can not be repeated on the same element (although they can appear on different elements). Attribute values must be quoted.

<foo lang="en">     
   <bar lang="fr"></bar>  
@@ -157,7 +157,7 @@ mark{display:inline}
 
  • The title element is also in the http://www.w3.org/2005/Atom namespace. -

    As far as a namespace-aware XML parser is concerned, the previous two XML documents are identical. Namespace + element name = XML identity. Prefixes are irrelevant. +

    As far as an XML parser is concerned, the previous two XML documents are identical. Namespace + element name = XML identity. Prefixes only exist to refer to namespaces, so the actual prefix name (atom:) is irrelevant. The namespaces match, the element names match, the attributes (or lack of attributes) match, and each element’s text content matches, therefore the XML documents are the same.

    The Structure Of An Atom Feed