Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > How to define a whole XML document as parameter when calling a method?

Thread Tools

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

Gianni Galore
Posts: n/a
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?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
*WITHOUT* using: ValidateRequest="False" for the whole page (or my whole site).... \A_Michigan_User\ ASP .Net 2 08-21-2006 02:13 PM
is it possible to get hidden parameter values using window.opener.document.form.parameter.value. Abdul Mohsin Javascript 1 09-06-2005 03:38 PM
Refer to an XML document from within an XML document Manish Hatwalne XML 1 07-13-2004 10:24 AM
Help on including one XML document within another XML document using XML Schemas Tony Prichard XML 0 12-12-2003 03:18 PM