J2ME 的XML 解析器 kXML

码农软件 · 软件分类 · 手机开发包 · 2019-05-07 23:28:22

软件介绍

kXML是一个J2ME平台下使用的XML语法分析程序,对于J2ME应用程序非常适合。它有一个非常独特的DOM操作方法和被称为Pull的语法分析方法。它有以下特性:

· 支持XML名称空间
· 用"松散"模式分析HTML或其它SGML格式
· 占用很少的存储空间(21 kbps)
· 基于Pull的分析
· 支持XML写操作
· 可选的DOM支持
· 可选的WAP支持

示例代码:

InputStream is = new URL(uri).openStream();
XmlPullParser parser = XmlPullParserFactory.newInstance().newPullParser();
parser.setInput(is, null);
parser.nextTag();
parser.require(XmlPullParser.START_TAG, "", "weblogs");
while (parser.nextTag() == XmlPullParser.START_TAG) {
String url = readSingle(parser);
if (url != null)
result.addElement(url);
}
parser.require(XmlPullParser.END_TAG, "", "weblogs");
parser.next();
parser.require(XmlPullParser.END_DOCUMENT, null, null);
is.close ();
parser.setInput (null)

本文地址:https://codercto.com/soft/d/5258.html

Introduction to the Design and Analysis of Algorithms

Introduction to the Design and Analysis of Algorithms

Anany Levitin / Addison Wesley / 2006-2-24 / USD 122.00

Based on a Based on a new classification of algorithm design techniques and a clear delineation of analysis methods, "Introduction to the Design and Analysis of Algorithms" presents the subject in a c......一起来看看 《Introduction to the Design and Analysis of Algorithms》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试