Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

N

N
name

Any object in XML has a type specifier called a name. For example, an element that describes the title of a book might be given the name "booktitle". The representation of the element must include the name in both its start and end tags, like this:

<booktitle>Wart Removal</booktitle

Names in XML must obey rules about character composition. For example, element names must start with either an underscore or a letter. See also attribute, element, markup.



namespace

Any of a group of specified elements and attributes that can be used in a document by prefixing a namespace identifier to an element's name, e.g., <namespace:element>. Namespaces must be declared using the xmlns declaration. The following syntax is used for a namespace declaration:

<xmlns:name=uri>

The name of the namespace is given by name, and the location of the namespace maintainer or version is given by uri (though parsers usually don't do anything with this information). Namespaces allow you to mix different sets of element definitions in a single document, for example, using mathematical equations in an HTML document. See also element, qualified element name.




  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial