Added a setDomNodeContent() helper method to simplify process().