add hook for post-processing elements, attributes, and children