changed checking for xml components to checking agianst lack of errors