How to define a whole XML document as parameter when calling a method?

Discussion in 'Java' started by Gianni Galore, Oct 8, 2010.

  1. Assume I want to pass a whole XML document from one class to another similar to:

    public void parentmethod() {
    XMLdoc myxml = ......
    XMLdoc xmlresult = calledsubmethod(myxml);
    ....
    }


    XMLdoc calledsubmethod(XMLdoc xmlinstance) {
    ...<modify xmlinstance>...
    return xmlinstance;
    }


    Unfortunately the code above does not work.

    How else can I pass an XML doc from one method to another?

    Gianni
    Gianni Galore, Oct 8, 2010
    #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. Don Wash
    Replies:
    7
    Views:
    10,703
    Ashish M Bhonkiya
    Aug 30, 2004
  2. Itamar Lev
    Replies:
    0
    Views:
    341
    Itamar Lev
    Jul 14, 2004
  3. Manfred Ullrich

    How define the fonts for the whole table?

    Manfred Ullrich, Mar 11, 2006, in forum: HTML
    Replies:
    18
    Views:
    4,453
    dorayme
    Mar 12, 2006
  4. Tony Prichard
    Replies:
    0
    Views:
    722
    Tony Prichard
    Dec 12, 2003
  5. \A_Michigan_User\
    Replies:
    2
    Views:
    885
    \A_Michigan_User\
    Aug 21, 2006
Loading...

Share This Page