whether the given 32 bit character is a valid XML 1.1 character. : XML Data « XML « Java






whether the given 32 bit character is a valid XML 1.1 character.

 

public class Utils {

  /**
   * Tests whether the given 32 bit character is a valid XML 1.1 character.
   */
  public static boolean isXML11Character(int c) {
      return c >= 1 && c <= 0xd7ff
          || c >= 0xe000 && c <= 0xfffd
          || c >= 0x10000 && c <= 0x10ffff;
  }

}

   
  








Related examples in the same category

1.Streaming XML
2.extends DefaultHandler to create a XML binding
3.Your won XML binding
4.Parse and format xs:dateTime values
5.Replaces all XML character entities with the character they represent.
6.Sniffed Xml InputStream to find out the declaration and file encoding
7.Whether the given character is a valid XML space.
8.JAXP 1.3 Datatype API
9.Common XML constants.
10.Sniffed Xml Reader
11.Source To InputSource
12.Utility class for working with xml data