Updated xml outpuch check to use the xml dom API