The attributes of an element are declared separately from the element declaration. The declaration of an attribute is as shown below: <!ATTLIST element_name attribute_name attribute_type > If more than one attribute is declared for a given element, such declarations can be combined as shown below: 1 2 3 4 5 6 <!ATTLIST element_name attribute_name_1 attribute_type default_value_1 attribute_name_2 attribute_type default_value_2 — attribute_name_n attribute_type default_value_n > There are ten different attribute types. Among them, most frequently used type if CDATA, which specifies character data (any string characters except < and &). The default value of an attribute can be an actual value or a requirement for the value of
The post How to declare attributes in DTD XML appeared first on Coding Security.
How to declare attributes in DTD XML
read more
Tidak ada komentar:
Posting Komentar