Class XMLChar


  • public final class XMLChar
    extends Object
    Contains utility methods to test characters for various properties defined by the XML specification.
    • Method Detail

      • isWhitespace

        public static boolean isWhitespace​(char c)
        Determine if the given character is whitespace according to the XML specification.
        Parameters:
        c - the character to examine
        Returns:
        true if the character is whitespace, false otherwise
      • isNameStartChar

        public static boolean isNameStartChar​(char c)
        Determine if the given character matches the NameStartChar production in the XML specification.
        Parameters:
        c - the character to examine
        Returns:
        true if the character is name start char, false otherwise
      • isNameChar

        public static boolean isNameChar​(char c)
        Determine if the given character matches the NameChar production in the XML specification.
        Parameters:
        c - the character to examine
        Returns:
        true if the character is name char, false otherwise