Download The demexp Book - Linux
Transcript
Here is an example of the top structure of a file in demexp XML format. 245a hexample-demexp-base.xml 245ai≡ <?xml version="1.0" encoding="utf-8" ?> <demexp_base version="0.3"> <participant_base> hexample of participant base 246ai </participant_base> <delegation_base> hexample of delegation base 246ci </delegation_base> <question_base> hexample of question base 248i </question_base> <classification_base> hexample of classification base 249bi </classification_base> </demexp_base> 42.2 Participant base A participant base is made of zero or more participants. A participant is defined by its login, a password (in fact, the MD5 hash of the password), and zero or more groups to which this participant belong. The participant tag has a mandatory kind attribute that indicates if the participant identified by this login is an individual or a delegate. It has also a mandatory p id attribute that stores the unique identifier of the participant, as a natural integer. 245b hdemexp.dtd 244i+≡ <!ELEMENT participant_base (participant*)> <!ELEMENT participant (login, password, group*)> <!ATTLIST participant kind (individual | delegate) #REQUIRED> <!ATTLIST participant p_id CDATA #REQUIRED> <!-- p_id is a natural integer --> <!ELEMENT login (#PCDATA)> <!ELEMENT password (#PCDATA)> <!ELEMENT group (#PCDATA)> 245 / 244 246b .