added DomParser class