[jdom-interest] JDOM error

Galluzzo, Eric EGalluzzo at synchrony.net
Wed Oct 4 09:51:15 PDT 2000


> -----Original Message-----
> From: philip.nelson at omniresources.com
> 
>     /**
>      * <p>
>      *  This is a utility function for determining whether a 
> specified 
>      *  character is a name character according to production 
> 4 of the 
>      *  XML 1.0 specification.
>      * </p>
>      *
> 
> which specifically says that a "." is not a legal character 
> in a name.  So,
> assuming this is correct, your document is not XML compliant.

Actually, production 4 says:

    NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
                 CombiningChar | Extender

which specifically includes '.'.  Also, at least in the latest CVS,
Verifier.isXMLNameCharacter() does indeed include '.' as being valid:

    public static boolean isXMLNameCharacter(char c) {
    
      return (isXMLLetter(c) || isXMLDigit(c) || c == '.' || c == '-' 
                             || c == '_' || c == ':' ||
isXMLCombiningChar(c) 
                             || isXMLExtender(c));
    
    }

So this seems like it ought to work with the latest CVS.

    - Eric



More information about the jdom-interest mailing list