Add checking function for is char TODO fix
Refactored functions

- Moved is_restricted, is_whitespace, is_char into a xml_node module,
  which takes care of basic utility functions