Web
Images
Videos
Academic
Dict
Maps
More
Flights
Notebook
REXML
Sample Sentence
Definition:
All
All
Category:
All
All
,
Oral
Oral
,
Written
Written
,
Title
Title
,
Technical
Technical
Source:
All
All
,
Dictionary
Dictionary
,
Web
Web
Difficulty:
All
All
,
Easy
Easy
,
Middle
Middle
,
Hard
Hard
More sentence filters
Hide sentence filters
1.
The
REXML
homepage
contains
a
very
good
tutorial
,
which is
not
entirely
complete
,
but
it
does
a
good
job
of
getting users up to
speed
.
REXML
主页
包含
一个
非常
好
的
教程
,
它
并不
完整
,
但
它
可以
很
好
地
帮助
您
尽快
熟悉
。
REXML
zhǔ yè
bāo hán
yī gè
fēi cháng
hǎo
de
jiào chéng
,
tā
bìng bù
wán zhěng
,
dàn
tā
kě yǐ
hěn
hǎo
de
bāng zhù
nín
jǐn kuài
shú xī
。
www.ibm.com
2.
Programming
a
visitor
is a
lot
like
programming a
SAX
,
expat
,
REXML
,
or
other
event
-
oriented
XML
parser
.
编写
访问
器
与
编写
SAX
、
expat
、
REXML
或
其它
面向
事件
的
XML
解析
器
非常
相
象
。
biān xiě
fǎng wèn
qì
yǔ
biān xiě
SAX
、
expat
、
REXML
huò
qí tā
miàn xiàng
shì jiàn
de
XML
jiě xī
qì
fēi cháng
xiāng
xiàng
。
www.ibm.com
3.
For
instance
,
components
implemented
in
Ruby
use
the
Ruby
REXML
library
to
deal
with
XML
data
.
例如
,
采用
Ruby
的
组件
实现
使用
RubyREXML
库
来
处理
XML
数据
。
lì rú
,
cǎi yòng
Ruby
de
zǔ jiàn
shí xiàn
shǐ yòng
RubyREXML
kù
lái
chǔ lǐ
XML
shù jù
。
www.ibm.com
4.
As
with
SAX
,
REXML
gives
the
application
programmer
no
default
data structures
from
the
XML
document
.
正如
使用
SAX
一样
,
REXML
没有
向
应用程序
程序员
提供
来自
XML
文档
的
缺省
数据结构
。
zhèng rú
shǐ yòng
SAX
yí yàng
,
REXML
méi yǒu
xiàng
yìng yòng chéng xù
chéng xù yuán
tí gōng
lái zì
XML
wén dàng
de
quē shěng
shù jù jié gòu
。
www.ibm.com
5.
The
REXML
tutorial
claims
that
stream
mode
is
one
thousand
five
hundred
times
as fast.
REXML
教程
声称
流
方式
的
速度
要
快
1500
倍
。
REXML
jiào chéng
shēng chēng
liú
fāng shì
de
sù dù
yào
kuài
yì qiān wǔ bǎi
bèi
。
www.ibm.com
6.
One
particularly
idiomatic
method
of
REXML
elements
is
the
.
each
iterator
.
REXML
元素
的
一个
独特
的
惯用
方法
是
.
each
迭代
器
。
REXML
yuán sù
de
yī gè
dú tè
de
guàn yòng
fāng fǎ
shì
.
each
dié dài
qì
。
www.ibm.com
7.
First
,
include
the
REXML
module
of
Ruby
.
This
has
the
methods
to
parse
through the
XML
file
.
首先
,
包含
Ruby
的
REXML
模块
,
该
模块
拥有
解析
XML
文件
的
方法
。
shǒu xiān
,
bāo hán
Ruby
de
REXML
mó kuài
,
gāi
mó kuài
yōng yǒu
jiě xī
XML
wén jiàn
de
fāng fǎ
。
www.ibm.com
8.
For
purposes
of
"
just
working
,
"
the
tree
mode
of
REXML
is
probably
the
easiest
approach
in the
Ruby
language
.
出于
“
正好
够用
”
的
目的
,
REXML
的
树
方式
可能
是
Ruby
语言
最
简单
的
方法
。
chū yú
"
zhèng hǎo
gòu yòng
"
de
mù dì
,
REXML
de
shù
fāng shì
kě néng
shì
Ruby
yǔ yán
zuì
jiǎn dān
de
fāng fǎ
。
www.ibm.com
9.
Keep this in
mind
:
the
Builder
library
allows
for
creation
of the
XML
,
while
the
module
REXML
enables
parsing
the
XML
data
.
请
记住
以下
要点
:
Builder
库
允许
创建
XML
,
同时
模块
REXML
支持
解析
XML
数据
。
qǐng
jì zhù
yǐ xià
yào diǎn
:
Builder
kù
yǔn xǔ
chuàng jiàn
XML
,
tóng shí
mó kuài
REXML
zhī chí
jiě xī
XML
shù jù
。
www.ibm.com
10.
This
example
shows
how
easy
and
simple
it is to
parse
XML
files
with
REXML
and
Ruby
.
这个
示例
展示
了
使用
REXML
和
Ruby
解析
XML
文件
有
多么
简单
!
zhè ge
shì lì
zhǎn shì
le
shǐ yòng
REXML
hé
Ruby
jiě xī
XML
wén jiàn
yǒu
duō me
jiǎn dān
!
www.ibm.com
1
2