Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Attribute Rules

Attribute type names are subject to the same naming rules and conventions as elements. The names are case sensitive, so NAME and name are not the same:

  • Attribute names cannot contain spaces. An attribute could be called FirstName but not First Name.

  • Attribute names must begin with a letter (or the underscore). So, Four11 would be an acceptable attribute, whereas 411 would not.

  • Attribute values must be enclosed in quotation marks.

  • An element may have only one attribute of a given name.

  • Attribute content may not contain <, >, or &.

Although attribute content must be contained in quotation marks, you can nest quotation marks within attribute content. To nest quotations, you simply use double quotation marks and single quotation marks, ...

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 Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book