Skip to Main Content
XML and Related Technologies
book

XML and Related Technologies

by Atul kahate
May 2024
Beginner to intermediate content levelBeginner to intermediate
527 pages
17h 52m
English
Pearson India
Content preview from XML and Related Technologies
Document Type Definitions (DTD) • 121
3.4.2 Types of Attributes
Attributes can be of three types: strings, tokenised, or enumerated. This is shown in Figure 3.26.
Attribute types
Strings Tokenised Enumerated
Figure 3.26 Types of attributes
3.4.2.1 String attributes
String attributes are declared by using the CDATA keyword.
A string attribute can contain any values, except some special characters, such as < > & ‘ or . We need
to use entity references to define such characters, but more about that later.
3.4.2.2 Tokenised attributes
Tokenised attributes specify certain restrictions that get applied to the attribute values.
Tokenised attributes allow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Schema

XML Schema

Eric van der Vlist
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means
Beginning XML, 5th Edition

Beginning XML, 5th Edition

Danny Ayers, Liam R.E. Quin, Joe Fawcett

Publisher Resources

ISBN: 9781282652262