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: 131
Registered: ‎08-13-2008
My Device: Not Specified
Accepted Solution

Parsing an XML string

Hi, I'm wondering if it is possible to skip creating a physical .xml file and parse the XML message I receive directly?

 

normally, we have to

 

builder.parse(fileConn.openInputStream());

but it's not possible to open an InputStream on a String...

 

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Parsing an XML string

bytearrayinputstream constructed from String.getBytes() [ or whatever it is called.]

This implements something like the c++ stringstream idea. 

Highlighted
New Developer
Posts: 6
Registered: ‎11-04-2009
My Device: Not Specified

Re: Parsing an XML string

can any one help me using xml parser in BB rim api