Linear or multidimensional, crosslinking, solvent resistant oxazole, thiazole, or imidazole (i.e., heterocycle) oligomers and blends of the crosslinking oligomers and noncrosslinking comparable polymers are described. The oligomers are prepared by reacting tetraamines, diaminodiols, or diaminothiols (i.e. four-functional compounds) with poly-carboxylic acid halides, and crosslinking phenylimide end cap monomers in a suitable solvent under an inert atmosphere.