Name

xs:string

Facets

xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern, xs:whiteSpace

The xs:string type is one of the most basic in XML Schema and is a common foundation for derived types. The xs:string type can contain any legal XML characters, though quotes and the apostrophe, as well as <, >, and & may need to be escaped to avoid breaking the well-formedness of the document.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.