This link has been bookmarked by 7 people . It was first bookmarked on 31 Mar 2008, by Mats Svensson.
-
03 Aug 10
-
30 Nov 08
-
30 Aug 07
-
import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.io.*; import java.io.*; //kxml imports import org.kxml.*; import org.kxml.parser.*; public class ParseXML extends MIDlet implements CommandListener { private Command exitCommand; // The exit command private Command displayXML; // On execution, it displays title and description // on phone screen private Display display; // The display for this MIDlet // UI Items for display of title and description on phone screen private static TextBox t; private static String textBoxString = ""; // XML String private String xmlStr = ""; public ParseXML() { display = Display.getDisplay( this ); exitCommand = new Command( "Exit", Command.EXIT, 2 ); displayXML = new Command( "XML", Command.SCREEN, 1 ); // The XML String in form of RSS StringBuffer xmlString = new StringBuffer(); xmlString.append("<?xml version="1.0"?> <!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN""); xmlString.append(""http://my.netscape.com/publish/formats/rss-0.91.dtd">"); xmlString.append("
"); xmlString.append(" "); xmlStr = xmlString.toString(); } public void startApp() { // The textbox displays title and description from a RSS String t = new TextBox( "MIDlet XML", "kXML", 256, 0 ); t.addCommand( exitCommand ); t.addCommand( displayXML ); t.setCommandListener( this ); display.setCurrent( t ); } /** Pause is a no-op since there are no background activities or record stores that need to be closed. */ public void pauseApp() { } /** Destroy must cleanup everyth "); xmlString.append("Meerkat: An Open Wire Service "); xmlString.append("http://meerkat.oreillynet.com"); xmlString.append("Meerkat is a Web-based syndicated content reader based on RSS ("Rich Site Summary"). RSS is a fantastic, simple-yet-powerful syndication system rapidly gaining momentum."); xmlString.append(" en-us "); xmlString.append("
-
-
11 Aug 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.