dom method for parsering xml