07-29-2010 02:16 AM
Hello,
I would like to do the following
InputSource is = new InputSource();
is.setCharacterStream(new StringReader(xmlRecords))
But it looks like those methods are not available on the BB. So what is the equilavent of the above ?
InputStream inputStream = /* XML String */
Document document = builder.parse( inputStream );
Thanks in advance
Wesley Trollip
Solved! Go to Solution.
07-29-2010 03:09 AM
ByteArrayInputStream bis = new ByteArrayInputStream(xmlString.getBytes("UTF-8"));
Document doc = builder.parse(bis);
07-29-2010 03:40 AM
Thank you Ted.