Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

How to extract XML nested tags from Soap object?

Hi All,

 

Here is my requirement,

 

I am getting response from the server as a soap object, now i want to extract the xml data,

How can i extract the nested tags?

 

Can I extract all the data or do i need to parse that XML response?

Is there any to extract the XML nested tags without parsing from the Soap Object?

 

If possible how?

 

Thanks in Advance.

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: How to extract XML nested tags from Soap object?

You receive an string (xml) of your response, then use DOM or SAX to parse that string...

Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: How to extract XML nested tags from Soap object?

I know about that,

But I dont want to parse the content, I am able to extract the values for simple XML files like

soapobject.getProperty("property name").toString().

 

I got some information using this link,

 

http://drdobbs.com/mobile/208800166?pgno=2

 

But I cant for nested tags,

Help me if anybody used this.

 

Thanks in advance.

Developer
Posts: 543
Registered: ‎12-23-2010
My Device: Z10
My Carrier: Airtel

Re: How to extract XML nested tags from Soap object?

Any help?,

I am able to do it for simple tags, 

But i cant do it for nested nested tags , and how to achieve this using KvmSerializable wrapper class, any help?

 

Thanks in Advance.