Ce fichier se décompose en quatre parties :
information « Magic» ;
DTD (Document Type Declaration) ;
Informations de titre ;
Blocs de données.
L'information « Magic » indique que le fichier adopte le format XML. Elle apparaît, en général, sous la forme suivante :
<? XML version = 1.0 ?> |
Les informations DTD définissent la structure du document. La DTD d'un fichier d'exportation est définie comme suit.
<!ELEMENT ENTITY (ENTITY* ADORNMENT*)> /* Entity element describes a entity. If it is a group, it may contain groups and adornment. */ <!ATTLIST ENTITY /* Entity attributes */ desc CDATA full_desc CDATA hostname CDATA ip CDATA netmask CDATA architecture CDATA family CDATA polling_type CDATA url CDATA x_coord CDATA y_coord CDATA topology_type CDATA event_dest CDATA trap_dest CDATA target_host CDATA target_ip CDATA read_info CDATA write_info CDATA> <!ELEMENT ADORNMENT> <!ATTLIST ADORNMENT x_coord CDATA y_coord CDATA type CDATA configuration CDATA> ]> |