Skip to content

tcberner/pretty-xml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Format XML to make it pretty. Dependencies: Nokogiri

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%