Do you use databinding or not. Whatever way if you have access to the
OMElement containing the request do the following.

OMElement reqElement;

Iterator iter = reqElement.getChildren();

// iterate thru children and get only the OMElements

// add the name of the element as the key using childEle.getName() and the
text content as the value childEle.getText()

HTH
Chinthaka

On Sun, Oct 5, 2008 at 4:14 PM, ibrahim demir <[EMAIL PROTECTED]>wrote:

> Hi all;
>
> I want to parse the request coming from the clients and generate a
> container object for my applicaion and execute my application.
>
> The request is like that
> <inBag xmlns="urn:cs.com.tr/banking">
>     <booleanParam>false</booleanParam>
>     <currencyParam>1233.8</currencyParam>
>     <csdateParam>20080412</csdateParam>
>     <cstimeParam>232320</cstimeParam>
>     <doubleParam>34567</doubleParam>
>     <floatParam>1234</floatParam>
>     <intParam>2345</intParam>
>     <longParam>4567</longParam>
>     <stringParam>stringParam,</stringParam>
>     <inputList>
>         <key>listKey1</key>
>         <value>listValue1</value>
>     </inputList>
>     <tableParam>
>         <name>name1</name>
>         <age>181</age>
>     </tableParam>
> </inBag>
>
>
> So I want to create an hashtable called inBag and put the elements as keys
> and their values as values like
>
> Hashtable inBag = new Hashtable ();
>
> inBag.put("booleanParam","false");
> inBag.put("longParam",4567);
>
> I am confused with axiom and unable to find good tutorials over the net. I
> will be pleased if you show me the way to do it.
>
> Yours
>
>
>
> Ibrahim DEMIR
> CyberSoft Yazilim Muh.
> http://www.ibrahimdemir.org
>
>
>
>
>
>


-- 
With Mettha,
Eran Chinthaka

--------------------------------------------------------------------
Health is the greatest gift; contentment is the greatest wealth; trusting is
the best relationship; nirvana is the highest joy. - Dhammapada

Reply via email to