Substituting xmlChar method for implementation since it wasn't working