school program using dom parser