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

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

xsd:Name

The type xsd:Name represents an XML name, which can be used as an element-type name or attribute name, among other things. Specifically, this means that values must start with a letter, underscore(_), or colon (:), and may contain only letters, digits, underscores (_), colons (:), hyphens (-), and periods (.). Colons should only be used to separate namespace prefixes from local names.

Simple Type Information

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

Schema Document: datatypes.xsd

Content

Examples

Valid valuesComment
myElement
_my.Element
my-element
pre:myelement3this is recommended only if pre is a namespace prefix; otherwise, colons should not be used
Invalid valuesComment
-myelementa Name must not start with a hyphen
3rdElementa Name must not start with a number
an empty value is not valid, unless xsi:nil is used

Type Inheritance Chain

Site developed and hosted by Datypic, Inc.

Please report errors or comments about this site to pwalmsley@datypic.com