def name_parse_special_characters(val)
      use_this = val.dup

      # Ensure that we don't have special characters at end of name
      while ["!","/","*"].include?(use_this.to_s[-1,1]) do
        # Will this node contain escaped XML?
        if use_this.to_s[-1,1] == '!'
          @escape_xml = false
          use_this.chop!
        end

        # Will this be a self closing node?
        if use_this.to_s[-1,1] == '/'
          @self_closing = true
          use_this.chop!
        end

        # Will this node contain a collection of sibling nodes?
        if use_this.to_s[-1,1] == '*'
          @content_type = "collection"
          use_this.chop!
        end
      end

      return use_this
    end
def name_parse_special_characters(val)
      use_this = val.dup

      # Ensure that we don't have special characters at end of name
      while ["!","/","*"].include?(use_this.to_s[-1,1]) do
        # Will this node contain escaped XML?
        if use_this.to_s[-1,1] == '!'
          @escape_xml = false
          use_this.chop!
        end

        # Will this be a self closing node?
        if use_this.to_s[-1,1] == '/'
          @self_closing = true
          use_this.chop!
        end

        # Will this node contain a collection of sibling nodes?
        if use_this.to_s[-1,1] == '*'
          @content_type = "collection"
          use_this.chop!
        end
      end

      return use_this
    end
name=
 Converts name into proper XML node name
 @param [String, Symbol] val Raw name