[jdom-interest] Possible bug in Verifier.checkXMLName

Rick Nucci rick_nucci at boomi.com
Fri Jun 9 18:21:11 PDT 2000


Brett McLaughlin wrote:
>yup. want to submit a patch?

That would probably help!


// Ensure valid content         
for (int i=0, len = name.length(); i<len; i++) {             
	char c = name.charAt(i);             
	if ((!Character.isLetterOrDigit(c))                 
		&& (c != '-')                 
		&& (c != '$')              
		&& (c != '.')                 
		&& (c != '_'))	{
                 
		return c + " is not allowed in XML names.";
      }
}


Just added '.' to the if statement.

Rick



______________________________________________

Rick Nucci
Partner, Boomi Inc.
rick_nucci at boomi.com
http://www.boomi.com 



More information about the jdom-interest mailing list