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

  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. 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. Wendy S
    Replies:
    1
    Views:
    6,352
    Darren Davison
    Aug 5, 2003
  2. Forest
    Replies:
    0
    Views:
    320
    Forest
    Oct 20, 2003
  3. Bernd Oninger
    Replies:
    4
    Views:
    12,248
    GIMME
    Jun 21, 2004
  4. Tinker
    Replies:
    4
    Views:
    5,287
    Harry Bosch
    Oct 9, 2005
  5. Bernd Oninger
    Replies:
    3
    Views:
    2,872
    GIMME
    Jun 21, 2004
Loading...

Share This Page