mParser= new WbxmlParser(); mContentHandler = new PrimitiveContentHandler();
mContentHandler.reset(); mParser.reset(); mParser.setContentHandler(mContentHandler); try { mParser.parse(new InputSource(in)); } catch (SAXException e) { throw new ParserException(e); } return mContentHandler.getPrimitive();