A batch consists of a number of debits followed by a number of credits.
Change the DTD so that the XML on the left passes validation but the XML on the right fails validation. The DTD given is too permissive - it allows any combination of card and cash.