implementing DOM parser, first commit