• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Namespace

Clearly, as DTDs and their elements are being created all over the world, all the time, name collisions are bound to occur. Our document might call in two different DTD protocols, perhaps from two different vendors. For example, we might want to handle two different formats for news sources, the RSS/RDF format from Netscape and the CDF from Microsoft.

Both define, for example, an element called <title> and another called <item>, but these elements have different meanings and very different structures. If our XML is to use both of them, it must be able to easily distinguish between them. It does so by putting a prefix in front of each one, separated from the original name by a colon. Thus we might have <microsoft:title> and <netscape:title>. Or <cdf:title> and <rdf:title>.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint