XML - doctype

1 - About

doctype is a DTD schema definition.

It MUST appear before the first element in the document.

3 - Example

3.1 - External Dtd declaration

XML - Document Type (Definition|Declaration) (DTD)


<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

3.2 - Inline Attribute Declaration

Example of attribute declarations


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE TABLE [
        <!ELEMENT TABLE (ROW)*>
        <!ATTLIST ROW COL1 CDATA #IMPLIED>
        <!ATTLIST ROW COL2 CDATA #IMPLIED>
        <!ELEMENT ROW (#PCDATA)>
        ]>
<TABLE>
    <ROW COL1="25874" COL2="000005" />
    <ROW COL1="26084" COL2="000006" />
</TABLE>	

4 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap