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 documents against a DTD or XML Schema can be referenced.
Look at this, called "note.xml" XML document:
The following example is the DTD file named "note.dtd", its above the XML document ( "note.xml") elements are defined:
The first line defines the note element has four sub-elements: "to, from, heading, body".
2-5 line defines the to, from, heading, body type element is "#PCDATA".
The following example is the XML Schema file called "note.xsd", which defines the XML document above ( "note.xml") elements:
note element is a complex type, because it contains other child elements. Other elements (to, from, heading, body) is a simple type, because they do not contain other elements. You will learn more about the types of complex and simple types of knowledge in the following sections.
This file contains a reference to a DTD:
This file contains a reference to the XML Schema: