xml--describing web content from a data perspective
XML originates from Sgml,xml, a language that can define other languages.
XML documents use self-describing and simple syntax, and the most basic components of an XML document include declarations, processing, directives, and elements.
Example:
<?xml version = "1.0" encoding = "GB2312"?><?xml-stylesheet type = "text/xsl" href = " Studets.xls "? ><books> <book bn = "001" > <name>java Getting Started </name> <author > Zhao da </author> <publisher> Tsinghua University Press </publisher > </book> <book bn = "002" > <name> cases </name> <author> Money Two </author> </publisher> </book></books>, University Press of <publisher> electronic industry;
The XML declaration--xml declaration is one of the directives, which can be added without the optional content shown in the file. The XML declaration requires that you include the Version property, which is named as the number of the XML being used.
The XML element--xml element consists of the starting tag, the closing tag, and the data content between the tags, multiple elements can be nested, the XML markup is the size of the West, and each tag can contain any number of attributes.
The markup in the XML attribute--xml element can contain any number of attributes. The tag attributes are in the form of a name/value pair, with an equal sign "=" link between the name and the value.
XML annotations-in XML, the annotation method is completely different from HTML, with "<!--" and "--" containing the comment content, instance:
<!--An example of an XML comment--
Zhongzhiyuan Nanjing 904727147, Jiangsu
Java--xml