validate the value against the xsd definition
Name ::= (Letter | '_' | ':') ( NameChar)*
NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
int scan;
boolean bValid = true;
for (scan=0; scan < stValue.length(); scan++) {
if (scan == 0)
bValid = XMLChar.isNameStart(stValue.charAt(scan));
else
bValid = XMLChar.isName(stValue.charAt(scan));
if (bValid == false)
break;
}
return bValid;