One of the usage of Input validation, is to be protect against XSS. In case one would need to define best practice for the functions validating the input, then some (which I am calling quality criteria) are to check for expected type, check for the expected length, check for the expected range and etc...
XML Bombs typically exploits the XML parser in processing the XML DTD or XML Schema. Therefore, I am wondering whether some would be able to help me defining some "quality" criteria for checking that the XML Schema are not vulnerable to, FOR INSTANCE XML Bombs... as similar to the way I mentioned for Input Validation.
Is there any, or what are the best practices in creating XML Schema in order, for instance, to avoid endless loops, or ...
In case there are already some XML Schema security validation tools or APIs as there are for Input Validation against XSS..., also I am interested.