First, XML basics
The main purpose of XML (I think these three points):
XML to separate data from HTML
XML simplifies data sharing
XML simplifies data transmission p>
XML syntax rules:
- XML document must have a root element
- XML document must have a closing tag
- XML tags are case sensitive
- XML elements must be Correct nesting
- XML attributes must be enclosed in quotation marks For example:
- XML comment:
For example:
//define the version of XML (1.0) and the encoding used (ISO-8859-1 = Latin-1/Western European characters set).
//quote css file
//Use XLST
//root element note
George //Sub-element to
John //Sub-element from
Reminder
Don‘t forget the meeting!
In XML, five predefined entity references:
< | < | |
> | > | greater than |
& | & | Ampersand |
' | ‘ | Single quote |
" td> | “ | quotation marks td> |
Second, advanced
//Define the version of XML (1.0) and the encoding used (ISO-8859-1 = Latin-1/Western European character set).
//quote css file
//Use XLST
//root element note
George //Sub-element to
John //Sub-element from
Reminder
Don‘t forget the meeting!