REXML::Element.write is deprecated. See REXML::Formatters

Discussion in 'Ruby' started by Phlip, Jan 15, 2008.

  1. Phlip

    Phlip Guest

    okay, I saw them. Now what?

    More cogently, my associates upgraded to:

    ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]

    Now my favorite methods just die, with this irrelevant error:

    NoMethodError: missing attribute: `output` in <td id width>
    /usr/local/lib/ruby/1.8/rexml/element.rb:684:in `write'

    So what's the modern equivalent of REXML::Element.write? Nothing fancy, just
    pretty-print some XML so its legible?

    --
    Phlip
    Phlip, Jan 15, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Barney Barumba
    Replies:
    0
    Views:
    551
    Barney Barumba
    Jul 23, 2003
  2. Fredrik Tolf
    Replies:
    8
    Views:
    359
    John Machin
    Dec 1, 2006
  3. Damphyr
    Replies:
    2
    Views:
    131
    Damphyr
    Jul 16, 2003
  4. Daniel Berger

    rexml error - REXML::Validation

    Daniel Berger, Oct 12, 2004, in forum: Ruby
    Replies:
    2
    Views:
    143
    Henrik Horneber
    Oct 12, 2004
  5. Charles Roper

    REXML::Formatters::Pretty wrap width?

    Charles Roper, Sep 18, 2009, in forum: Ruby
    Replies:
    0
    Views:
    135
    Charles Roper
    Sep 18, 2009
Loading...

Share This Page