From: Marek D. <mar...@gm...> - 2011-01-03 19:26:41
|
Hi, There is a problem in our client with response validation. We did research and we are almost sure that schema validator should pass response like this <tag attribute="" />, but unfortunately we have found code in SchemaValidator.cpp file: 874 /* 875 Check for the correctness of each attribute 876 */ 877 string > attVal = xpp->getAttributeValue("", at->getName()); 878 if (attVal.empty > ()) 879 { 880 if (at->isRequired()) 881 error("Required attribute \"" + > at->getName() + 882 "\" missing or empty",xpp); 883 > 884 else 885 continue; 886 } If you have any information about such restrict validation could you give us a note? All links we looked says that empty strings fits even for required attributes. -- z pozdrowieniami Marek Daniluk |