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