lib/metanorma/collection.rb in metanorma-1.3.5 vs lib/metanorma/collection.rb in metanorma-1.3.6
- old
+ new
@@ -89,10 +89,12 @@
end
private
def parse_xml(file)
- xml = Nokogiri::XML File.read(file, encoding: "UTF-8")
+ xml = Nokogiri::XML File.read(file, encoding: "UTF-8") do |config|
+ config.huge
+ end
if (b = xml.at("/xmlns:metanorma-collection/xmlns:bibdata"))
bd = Relaton::Cli.parse_xml b
end
mnf_xml = xml.at("/xmlns:metanorma-collection/xmlns:manifest")
mnf = CollectionManifest.from_xml mnf_xml