HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
String data type is used to contain the value of the string.
String data type can contain characters, line feeds, carriage returns, and tabs.
Here is an example of a scheme string declaration:
Elements in the document should look like this:
Or like this:
Note: If you use the string data types, XML processor will not change one value.
Normalized string data types derived from string data type.
Normalized string data type can contain the same characters, but the XML processor will remove line break, carriage returns, and tabs.
Here is an example of a normalized string data type in the schema:
Elements in the document should look like this:
Or like this:
Note: In the above example, XML processor will be used to replace all tabs with spaces.
Token data derived from the same type of string data type.
Token same data type can contain characters, but the XML processor will remove line feeds, carriage returns, tabs, leading and trailing spaces, and (continuous) space.
Here is an example of a schema in the relevant token declaration:
Elements in the document should look like this:
Or like this:
Note:> In the above example, XML parser will remove the tabs.
Please note that all of the following data types are derived from the String data type (except for string data type itself)!
name | description |
---|---|
ENTITIES | |
ENTITY | |
ID | Submitted string ID attribute in XML (only used in conjunction with schema attributes) |
IDREF | Submitted string IDREF attribute in XML (only used in conjunction with schema attributes) |
IDREFS language | String contains a valid language id of |
Name | String contains a valid XML name |
NCName | |
NMTOKEN | Submitted string NMTOKEN attribute in XML (only used in conjunction with schema attributes) |
NMTOKENS | |
normalizedString | String does not contain line feeds, carriage returns, or tabs |
QName | |
string | String |
token | String does not contain line feeds, carriage returns, or tabs, leading or trailing spaces or more consecutive spaces |
It can be used in conjunction with a defined string data types: