Hello, Zooey, and welcome to JavaRanch.
I can think of a couple of ways of doing this; a slight modification of your XML data might be in order.
Note that this would change your XML code to something like the following:
<method>company.MyClass::myMethod::hello::String::10::Integer</method>
(calls myMethod("hello", 10))
<method>company.MyClass::myMethod::hello::String::first::String</method>
(calls myMethod("hello", "first"))
<method>company.MyClass::myMethod::hello,first::String[]</method>
(calls myMethod(new String[]{"hello", "first"}))
<method>company.MyClass::myMethod::hello, first, second::String[]</method>
(calls myMethod(new String[]{"hello", "first", "second"}))
=============
Also, as an aside, you may want to consider breaking your XML method element down into several sub-elements; it may look convenient to insert your own formatting mechanism, but in the long run, it would probably be more hassle than it is worth. Try:
<method>
<className>company.MyClass</className>
<methodName>myMethod</methodName>
<parameter>
<type>java.lang.String[]</type>
<value>hello</value>
<value>first</value>
</parameter>
</method>
and the like. Of course, this is just my suggestion
