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

XML Names

If an XML parser is to properly process an XML document, it must know which characters are permitted in which locations. So, let's take a brief look at the legal characters that can be used in constructing an XML name.

All XML names must begin with a letter, an underscore character (_), or a colon (:). In practice, avoid starting an XML name with a colon because it's used, in effect, as a continuation character in namespaces, and so on. In fact, although it's legal, you should entirely avoid using a colon except as a namespace continuation character.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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