A
Adrian
I cannot find a way to define an element so that it contains sub
elements in any order but only 1 of each.
I have tried a sequence of but then the order matters
I have tried a choice of 0 or more but then I can add an element in
twice.
Here is what I have tried so far
<!ELEMENT fields (type?, expiry_date?, ccmy?, commodity_name?,
exchange_symbol?, notice_date?, related_option?, action_ptr?,
double_quote_to?, double_quote_from?, retransmission?, active_index?,
title?)>
<!ELEMENT fields (type | expiry_date | ccmy | commodity_name |
exchange_symbol | notice_date | related_option | action_ptr |
double_quote_to | double_quote_from | retransmission | active_index |
title)*>
So in <fields> I want 0 or 1 of each field but I dont want to specifiy
an order for the elements in <fields>. Is this possible in a dtd
definition.
This has to be a dtd too, our xml library doesnt support schemas and
cannot be changed.
Adrian
elements in any order but only 1 of each.
I have tried a sequence of but then the order matters
I have tried a choice of 0 or more but then I can add an element in
twice.
Here is what I have tried so far
<!ELEMENT fields (type?, expiry_date?, ccmy?, commodity_name?,
exchange_symbol?, notice_date?, related_option?, action_ptr?,
double_quote_to?, double_quote_from?, retransmission?, active_index?,
title?)>
<!ELEMENT fields (type | expiry_date | ccmy | commodity_name |
exchange_symbol | notice_date | related_option | action_ptr |
double_quote_to | double_quote_from | retransmission | active_index |
title)*>
So in <fields> I want 0 or 1 of each field but I dont want to specifiy
an order for the elements in <fields>. Is this possible in a dtd
definition.
This has to be a dtd too, our xml library doesnt support schemas and
cannot be changed.
Adrian