ierr = pxmlIn->GetData(pcTag, *pTData); *pbDataValid = bool((ierr==0)&&(iLen>0)); // enabled if: not empty string and vaild (number?) if (*pbDataValid) iErr += ierr;