Schema Central > XML Schema 1.0 > xsd:normalizedString
Advanced search
Need XML Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:normalizedString

The type xsd:normalizedString represents a character string that may contain any Unicode character allowed by XML. Certain characters, namely the "less than" symbol (<) and the ampersand (&), must be escaped (using the entities &lt; and &amp;, respectively) when used in strings in XML instances.

The xsd:normalizedString type has a whiteSpace facet of replace, which means that the processor replaces each carriage return, line feed, and tab by a single space. This processing is equivalent to the processing of CDATA attribute values in XML 1.0. There is no collapsing of multiple consecutive spaces into a single space.

Simple Type Information

Namespace: http://www.w3.org/2001/XMLSchema

Schema Document: datatypes.xsd

Content

Examples

Valid valuesComment
This is a string!
Édition française.
12.5
an empty string is valid
PB&amp;Jwhen parsed, it will become "PB&J"
   Separated by 3 spaces.when parsed, the spaces will be retained
This
is on two lines.
when parsed, the line break will be replaced by a space
Invalid valuesComment
AT&Tampersand must be escaped
3 < 4the "less than" symbol must be escaped

Type Inheritance Chain

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to contrib@functx.com