My copy of O Lochlainn's "More Irish Street Ballads" (in which "In praise of the City of Mullingar" is no 87) says that he had known fragments of Mullingar from schooldays, and that it appeared in "Songs and Fables" by Professor W J Rankine (Glasgow, Maclehose, 1874).