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: 206
Registered: ‎07-02-2010
My Device: 8320 Curve
My Carrier: Vodacom

Re: Parse XML to String ?

"Just create your parser" Smiley Happy dude i am 100% nooob with java i don't even know where to start to accomplish this !

Highlighted
Developer
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: Parse XML to String ?

Loop through your document.

For each element do this:

"<" + element.getNodeName() + ">"

 

For each text node append to your string this:

element.getNodeValue()

 

And same thing for attributes.

 

Then you will have your xml string.