Commit d925252a authored by Michael Witrant's avatar Michael Witrant

dump indented xml

parent 99724152
......@@ -4,6 +4,7 @@ require 'rubygems'
require 'bundler/setup'
require 'zippy'
require 'clik'
require 'nokogiri'
xml_dump_path = nil
......@@ -17,8 +18,8 @@ do |zip|
xml = zip['content.xml']
doc = Nokogiri::XML::Document.parse(xml)
if xml_dump_path, "w") { |f| f.write xml }, "w") { |f| f.write doc.to_xml(indent: 2) }
puts xml.size
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment