Sha256: f07e24f472f38eba8e03df1bd74c91a133421fc08df8526287d936c864911dfe
Contents?: true
Size: 530 Bytes
Versions: 5
Compression:
Stored size: 530 Bytes
Contents
# encoding: UTF-8 # To make testing/debugging easier, test within this source tree versus an installed gem #dir = File.dirname(__FILE__) #root = File.expand_path(File.join(dir, '..')) #lib = File.expand_path(File.join(root, 'lib')) #ext = File.expand_path(File.join(root, 'ext', 'libxml')) #$LOAD_PATH << lib #$LOAD_PATH << ext #require 'xml' def remove_header_declaration( xml ) if xml.strip.start_with?( '<?xml') i = xml.index( '?>', 3 ) xml[ i+2, xml.length-i ] else xml end end
Version data entries
5 entries across 5 versions & 1 rubygems