boolean contentAllowed = def.contentHandling() != ContentHandling.ERROR;
switch (parentDef.contentHandling()) { case ERROR: throw new RuntimeException("Text content is not allowed for tag " + parentDef.getTag());
boolean contentAllowed = def.contentHandling() != ContentHandling.ERROR;
switch (parentDef.contentHandling()) { case ERROR: throw new RuntimeException("Text content is not allowed for tag " + parentDef.getTag());