BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   WBXML parsing (http://www.blackberryforums.com/developer-forum/141999-wbxml-parsing.html)

krishnanrajah 07-25-2008 05:57 AM

WBXML parsing
 
Hi ,
I would like to parse a WBXML coming from a server. Is there a code sample available for using the WBXMLParser class to parse the content ?

After some experimenting i did the following

WBXMLParser xmlParser = new WBXMLParser((InputStream)bin);
xmlParser.setTagTable(0,tagTable);
xmlParser.parse(new XMLParserHandler());

but i get the following exception exception "org.xml.sax.SAXException: Element does not exist in tag table". I added "WML" to the tagtable.

pls help



thanks
krishnan


All times are GMT -5. The time now is 06:52 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.