Obtains a {@link TypeInfo} object from the DTD type name.
Since DTD has a very limited type names, we can actually
cache the {@link TypeInfo} objects.
TypeInfo t = (TypeInfo)dtdCache.get(name);
if(t==null) throw new IllegalArgumentException("Unknown DTD datatype "+name);
return t;