On closing drugtypes and drugitems tags pData->curElement wasn't set back to ELEMENT, so other tags after that would be skipped until reaching a next background tag.
Also if drugitems were set after drugtypes, drugtypes would be cleared (wrong vector).
On closing drugtypes and drugitems tags pData->curElement wasn't set back to ELEMENT, so other tags after that would be skipped until reaching a next background tag.
Also if drugitems were set after drugtypes, drugtypes would be cleared (wrong vector).