Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

Schema Tutorial
XML Schema Introduction
Why Use XML Schemas?
XSD How To?
XSD - The <schema> Element
XSD Simple Elements
XSD Attributes
XSD Restrictions/Facets
XSD Complex Elements
XSD Complex Empty Elements
XSD Complex Type - Elements Only
XSD Complex Text-Only Elements
XSD Complex Types With Mixed Content
XSD Complex Types Indicators
XSD The <any> Element
XSD The <anyAttribute> Element
XSD Element Substitution
An XSD Example
XSD String Data Types
XSD Date Data Types
XSD Numeric Data Types
XSD Miscellaneous Data Types
You Have Learned XML Schema, Now What?

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


XSD String Data Types
Previous Next


String data types are used for values that contains character string.




String Data Type

The string data type can contain characters, carriage returns, line feeds and tab characters.

The following is an example of a string declarations in a schema:

<xs:element name="customer" type="xs:string"/>

An element in your documents might look like this:

<customer>John Smith</customer>

Or it might look like as follows:

<customer>John Smith</customer>

Note: The XML processor will not modify the value if you use the string data types.




NormalizedString Data Type

The normalizedString data type is derived from the String data type also.

The normalizedString data type also contain characters, but the XML processor will remove line feeds, carriage returns, and tab characters.

The following is an example of a normalizedString declaration in a schemas:

<xs:element name="customer" type="xs:normalizedString"/>

An element in your documents might look like this:

<customer>John Smith</customer>

Or it might look like this:

<customer>John Smith</customer>

Note: In the example above the XML processor will replace the tabs with space.




Token Data Type

The token data type is derived from the String data type.

The token data type also contains character, but the XML processor will remove line feeds, carriage returns, tabs, leading and trailing spaces, and multiple spaces.

The following is an example of a token declarations in a schema:

<xs:element name="customer" type="xs:token"/>

An element in your document might look as follows:

<customer>John Smith</customer>

Or it might look as follows:

<customer>John Smith</customer>

Note: In the example above the XML processor will remove the tab.




String Data Types

Note that all of the data types below derive from the String data type (except for the string itself)!

Name Description
ENTITIES  
ENTITY  
ID

A string that represents the ID attribute in XML (only used with schema attributes)

IDREF

A string that represents the IDREF attribute in XML (only used with schema attributes)

IDREFS  
language A string that contains a valid language id
Name A string that contains a valid XML name
NCName  
NMTOKEN

A string that represents the NMTOKEN attribute in XML (only used with schema attributes)

NMTOKENS  
normalizedString

A string that does not contain line feeds, carriage returns, or tabs

QName  
string A string
token

A string that does not contain line feeds, carriage returns, tabs, leading or trailing spaces, or multiple spaces




Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords: XSD string datatype,xsd data types,xsd data type,sql server datatype,vb net xsd,xsd tutorial,xsd xml,xsd examples,xsd dtd,sample xsd,xsd format,xsd example


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.