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
XML Schema elements define XML file.
Simple elements are those elements contain only text. It does not contain any other elements or attributes.
Simple elements are those elements contain only text. It does not contain any other elements or attributes.
However, "it contains only text" restriction is very likely to cause misunderstanding. There are many types of text. It can be included in the definition of XML Schema type one (boolean, string, data, etc.), or it may be a custom type that you define yourself.
You can also add restrictions (ie, facets), in order to limit its content, or you can require the data to match a particular pattern to the data type.
Simple definition syntax elements:
Where xxx is the name of the element, yyy refers to the data type of the element. XML Schema has a lot of built-in data types.
Here are some XML elements:
This is the corresponding simple element definitions:
Simple elements can have a specified default or fixed value.
When no other value is specified, the default value is automatically assigned to the element.
In the following example, the default value is "red":
Fixed values are also automatically assigned to the elements, and you can not predetermined additional value.
In the following example, the fixed value is "red":