updating domparser to parse attributes