Added dom::traverse() method.