Project

pretty-xml

0.01
No commit activity in last 3 years
No release in over 3 years
Pretty print XML depends upon Nokogiri to perform XML transformation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.6.7.2, ~> 1.6
 Project Readme

Introducing the PrettyXML gem

require 'pretty-xml'
include PrettyXML

xml = "<a1><b1>testing</b1><c>eating<c1>apple</c1>and cooking</a1>"
puts write xml

=begin
output:
<?xml version="1.0" encoding="UTF-8"?>
<a1>
   <b1>testing</b1>
   <c>
      eating
      <c1>apple</c1>
      and cooking
   </c>
</a1>
=end

The PrettyXML gem is a module for use within your own object which needs XML to be pretty.

Resources