Redian新闻
>
[转载] a question on XML parser
avatar
[转载] a question on XML parser# XML - WWW明日之星
l*r
1
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: laoer (You know what!), 信区: Programming
标 题: a question on XML parser
发信站: Unknown Space - 未名空间 (Tue Jun 15 22:29:14 2004) WWW-POST
Greetings,
I have several "<.. divide="" file.="" first="" i="" in="" now="" one="" right="" this="">file to many string. Each string is one xml record. Then, I use Java SAX
parser to parse it. It turns out that it performs very slowly on dividing and
parsing. Is there any better way? like parsing all records in this file in one
time?
Tha
avatar
s*e
2
SAX is good for directly reading from the XML file. Why do you divide
the file into many strings at first?

【在 l***r 的大作中提到】
: 【 以下文字转载自 Programming 讨论区,原文如下 】
: 发信人: laoer (You know what!), 信区: Programming
: 标 题: a question on XML parser
: 发信站: Unknown Space - 未名空间 (Tue Jun 15 22:29:14 2004) WWW-POST
: Greetings,
: I have several "<.. divide="" file.="" first="" i="" in="" now="" one="" right="" this="">: file to many string. Each string is one xml record. Then, I use Java SAX
: parser to parse it. It turns out that it performs very slowly on dividing and
: parsing. Is there any better way? like parsing all records in this file in one
: time?

avatar
P*x
3
Use c++ parser.

【在 l***r 的大作中提到】
: 【 以下文字转载自 Programming 讨论区,原文如下 】
: 发信人: laoer (You know what!), 信区: Programming
: 标 题: a question on XML parser
: 发信站: Unknown Space - 未名空间 (Tue Jun 15 22:29:14 2004) WWW-POST
: Greetings,
: I have several "<.. divide="" file.="" first="" i="" in="" now="" one="" right="" this="">: file to many string. Each string is one xml record. Then, I use Java SAX
: parser to parse it. It turns out that it performs very slowly on dividing and
: parsing. Is there any better way? like parsing all records in this file in one
: time?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。