make ApiPurge use ContentHandler for parsing