当前位置: 代码迷 >> Eclipse >> 怎么从xml文件中提出文字
  详细解决方案

怎么从xml文件中提出文字

热度:46   发布时间:2016-04-23 01:09:01.0
如何从xml文件中提出文字
本帖最后由 alanmiu 于 2013-10-15 08:36:46 编辑
请问如何提出单词
are
lessons
learnt等
<text id="en1">
<s>
5
What
<head id="en1.s001.t3">are</head>
the
five
<head id="en1.s001.t6">lessons</head>
<head id="en1.s001.t7">learnt</head>
from
the
<head id="en1.s001.t10">evaluation</head>
and
what
do
these
<head id="en1.s001.t15">mean</head>
for
the
<head id="en1.s001.t18">nature</head>
<head id="en1.s001.t19">conservation</head>
<head id="en1.s001.t20">policy</head>
?
</s>

------解决方案--------------------
我读写xml 用 org.jdom2
------解决方案--------------------
楼主先将需要再描写清楚一下,我提出以下问题请先回答:
1.是否在B/S应用中解析xml?
2.如果是在B/S应用中,那么在服务器端解析,还是在前端解析?
3.如果在前端解析,前端使用何种语言(如flex或者javascript)?
4.如果在服务器端解析(或者是桌面应用程序),你是使用的什么语言(如java)?

建议楼主选择一个更加合适的板块,将帖子转移过去。放到eclipse板块中大家就会有以上这些疑问了。
  相关解决方案