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
In a DTD, element by element declaration to be declared.
In a DTD, XML element by element declaration to be declared. Element declaration with the following syntax:
Empty elements declared by category keyword EMPTY:
Only PCDATA elements inside parentheses #PCDATA declared:
Statement by category keyword ANY element can contain any combination of parsable data:
Elements with one or more children elements inside parentheses child element names declared:
When the sub-elements separated by commas according to the sequence of statements, these sub-elements must appear in the same order in the document. In a full declaration, the children must also be declared, but also child elements can have child elements. "Note" element is the complete statement:
The above example declares: message the child elements must appear once, and must appear only once in the "note" element.
The example above the plus sign (+) declares: message the child elements must appear at least once in the "note" element.
The above examples asterisk (*) declares: child element message can appear in the "note" element zero or more times.
The above example declares question mark (?): The child element message can appear in the "note" element zero or one time.
The above example declares: "note" element must contain a "to" element, "from" element, "header" element, as well as non "message" element only "body" element.
The above example declares: "note" element can contain zero or more times PCDATA, "to", "from", "header" or "message".