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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
KeniF
Posts: 131
Registered: ‎08-13-2008
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...

 

Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008

Re: Parsing an XML string

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

This implements something like the c++ stringstream idea. 

Please use plain text.
New Developer
bala_eventurers
Posts: 6
Registered: ‎11-04-2009

Re: Parsing an XML string

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

Please use plain text.