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

string

The string datatype is a primitive datatype used to represent strings of characters. The character is considered the atomic unit of a string, and what constitutes a character is defined in the XML 1.0 Recommendation. The value set for a string will be dependent on the character set being used in the XML document, just as the characters in the English alphabet are different from the characters in the Russian alphabet.

The constraining attributes that can be used with the string datatype are

  • length

  • minLength

  • maxLength

  • pattern

  • enumeration

Properties such as these that make up the characteristics of types are known as facets. Facets are expressed and manipulated with types as attributes, and changing the value of the attribute changes the limitations ...

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