We can't specify fixed number of children in DTD...for that you can use XML Schema.in Schema,there are attributes 'minOccurs' and 'maxOccurs' attributes.
example : if we have root element and we reguired child minimum 1 time and maximum 100...we can try it by bellow code:
Comments
example :
if we have root element and we reguired child minimum 1 time and maximum 100...we can try it by bellow code:
<?xml version="1.0" encoding="UTF-8"?>
Thanks!