Something bothers me:
The NSXMLParser method has the namespaceURI attribute:
- (void)parser:(NSXMLParser *)parser
didEndElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI
qualifiedName:(NSString *)qName
From the documentation, I could not understand what they mean by "namespace". Can someone explain with an example what the namespace is in XML and why I would like this?
Edit: Yes, I noticed Wikipedia. But this is again confusing. What is the point of making a single namespace declaration at the top of an XML file, for example
xmlns:xhtml="http://www.w3.org/1999/xhtml"
?? Again, this only makes zero sense. There is no useful example on Wikipedia to get it, why I really would like a namespace and, more importantly, how it looks in an XML file. They say this to resolve the ambiguity of several of the same elements, such as an ID, but there is no example of how multiple namespaces can solve this.