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
"Element containing only" complex type element is the only element that contains other elements.
XML element, "person", contain only other elements:
You can define "person" element in the schema:
Please pay attention to this
Or you can set a name for the complexType element, and let the type attribute "person" element to reference this name (such as the use of this method, several elements can refer to the same complex type):