New JDOM 1.0 beta syntax

Discussion in 'XML' started by GIMME, Apr 24, 2004.

  1. GIMME

    GIMME Guest

    What is the jdom1.0 equivalent of :
    elm.addContent(new Element("blurb").addContent(blurb1));

    This worked with beta 7.

    Thanks
     
    GIMME, Apr 24, 2004
    #1
    1. Advertisements

  2. GIMME wrote:

    > What is the jdom1.0 equivalent of :
    > elm.addContent(new Element("blurb").addContent(blurb1));
    >
    > This worked with beta 7.


    I think addContent returns a Parent and you need an Element so try
    elm.addContent((Element) new Element("blurb").addContent(blurb1));

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Apr 24, 2004
    #2
    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. Mark Oliver

    install Beta 2 after Beta 1?

    Mark Oliver, Jan 25, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    602
    Scott Allen
    Jan 25, 2005
  2. Wendy S
    Replies:
    1
    Views:
    6,941
    Darren Davison
    Aug 5, 2003
  3. Forest
    Replies:
    0
    Views:
    399
    Forest
    Oct 20, 2003
  4. Bernd Oninger
    Replies:
    4
    Views:
    15,342
    GIMME
    Jun 21, 2004
  5. Tinker
    Replies:
    4
    Views:
    6,161
    Harry Bosch
    Oct 9, 2005
  6. Forest
    Replies:
    0
    Views:
    518
    Forest
    Oct 20, 2003
  7. Bernd Oninger
    Replies:
    3
    Views:
    3,165
    GIMME
    Jun 21, 2004
  8. Replies:
    2
    Views:
    796
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
Loading...