This code demonstrates an extremely simple XML parser compatible with J2ME.
Example:
InputStream is = ?;
MiniPushHandler myHandler = new MyXMLHandler();
MiniPushParser parser = new MiniPushParser();
parser.parse(is,myHandler,1024);
For convenience, the MiniPushParser implements MiniPushHandler. You can see how to create a basic handler by looking at the source code. In addition you can test the code by using:
InputStream is = ?;
MiniPushParser parser = new MiniPushParser();
parser.parse(is,null,1024);
There are various (good) alternatives for parsing XML in J2ME such as kXML.
#Fixed: 10/29 handleStartTag not called