XML pretty printing?

C

Chris McMahon

Hi...

Is there something in Ruby that will make XML look nice on STDOUT?

-Chris
 
A

ara.t.howard

Hi...

Is there something in Ruby that will make XML look nice on STDOUT?

-Chris

puts doc.pretty

-a
--
===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| -- bodhicaryavatara
===============================================================================
 
J

James Britt

Chris said:
Hi...

Is there something in Ruby that will make XML look nice on STDOUT?

REXML has a options for printing with nice indentation.

http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html

James

--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,049
Members
47,655
Latest member
eizareri

Latest Threads

Top