implementing DOM parser,added out information to console