set up render(XMLReader, InputSource) as the main render() method, and normalize render(Document document) to this form.