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. Advertisements

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:
    754
    Barney Barumba
    Jul 23, 2003
  2. Flip
    Replies:
    3
    Views:
    1,202
    Tony Morris
    Feb 9, 2004
  3. Steve Kershaw
    Replies:
    1
    Views:
    537
    Brennan Stehling
    Sep 26, 2006
  4. Fredrik Tolf
    Replies:
    8
    Views:
    464
    John Machin
    Dec 1, 2006
  5. HANM
    Replies:
    2
    Views:
    1,517
    Joseph Kesselman
    Jan 29, 2008
  6. Damphyr
    Replies:
    2
    Views:
    330
    Damphyr
    Jul 16, 2003
  7. Daniel Berger

    rexml error - REXML::Validation

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

    REXML::Formatters::Pretty wrap width?

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