Factory functions for HTML/XML extractor functions