Class: XmlSig::XMLC14NWithoutComments

Inherits:
XMLC14NBase show all
Defined in:
lib/xml_sig/canonicalization_method.rb

Instance Method Summary collapse

Methods inherited from XMLC14NBase

#convert_linebreaks, #convert_to_utf8, #normalize_attribute_values

Instance Method Details

#process(content, charset = 'UTF-8') ⇒ Object



38
39
40
41
# File 'lib/xml_sig/canonicalization_method.rb', line 38

def process(content, charset='UTF-8')
  content = convert_to_utf8(content) unless charset == 'UTF-8'
  doc = REXML::Document.new(content)
end