The XML blueprint defines an XML certificate as a argument that is well-formed, i.e. it satisfies a account of syntax rules provided in the specification. The account is adequately lengthy; some key credibility are:
It contains alone appropriately encoded acknowledged Unicode characters.
None of the appropriate syntax characters such as "<" and "&" arise except if assuming their markup-delineation roles.
The begin, end, and empty-element tags that circumscribe the elements are accurately nested, with none missing and none overlapping.
The aspect tags are case-sensitive; the alpha and end tags have to bout exactly. Tag names cannot accommodate any of the characters !"#$%&'()*+,/;<=>?@\^`{|}~, nor a amplitude character, and cannot alpha with -, ., or a numeric digit.
There is a individual "root" aspect that contains all the added elements.
The analogue of an XML certificate excludes texts that accommodate violations of well-formedness rules; they are artlessly not XML. An XML processor that encounters such a abuse is appropriate to address such errors and to cease accustomed processing. This policy, occasionally referred to as draconian, stands in notable adverse to the behavior of programs that action HTML, which are advised to aftermath a reasonable aftereffect even in the attendance of astringent markup errors.16 XML's action in this breadth has been criticized as a abuse of Postel's law ("Be bourgeois in what you send; be advanced in what you accept").17
It contains alone appropriately encoded acknowledged Unicode characters.
None of the appropriate syntax characters such as "<" and "&" arise except if assuming their markup-delineation roles.
The begin, end, and empty-element tags that circumscribe the elements are accurately nested, with none missing and none overlapping.
The aspect tags are case-sensitive; the alpha and end tags have to bout exactly. Tag names cannot accommodate any of the characters !"#$%&'()*+,/;<=>?@\^`{|}~, nor a amplitude character, and cannot alpha with -, ., or a numeric digit.
There is a individual "root" aspect that contains all the added elements.
The analogue of an XML certificate excludes texts that accommodate violations of well-formedness rules; they are artlessly not XML. An XML processor that encounters such a abuse is appropriate to address such errors and to cease accustomed processing. This policy, occasionally referred to as draconian, stands in notable adverse to the behavior of programs that action HTML, which are advised to aftermath a reasonable aftereffect even in the attendance of astringent markup errors.16 XML's action in this breadth has been criticized as a abuse of Postel's law ("Be bourgeois in what you send; be advanced in what you accept").17
No comments:
Post a Comment