Streamlined process of replacing tags as the DTD changes by moving tags into a separate class within patparser