由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
XML版 - [转载] XML question
相关主题
[转载] XML parsing problemHow to parse DTD structure?
one simple questionAbout XML parser
[转载] help! XML parse problem从哪里开始学习XML?
xml parser?兄弟们给介绍一本经典的XML书吧
xml parserPerl XML FAQ--2
SAX and DOM parsersHelp: Several questions on XML
Any APIs for handling XML?[转载] PERL XML parser
[转载] a question on XML parserXML 结构
相关话题的讨论汇总
话题: xml话题: sax话题: dom话题: does话题: tree
进入XML版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
【 以下文字转载自 Java 讨论区 】
【 原文由 coconut 所发表 】
All of the following refer to parsing XML, not writing XML document
itself.
I went through Sun's XML tutorial using SAX and have some
questions.
1. Does one really write those handlers by hand? It is just insane.
How in the world does one differentiate different elements since they
are just poured in to the same handler. if tree can work, but then
the performance can suck bad. DOM is slightly simpler, but still
traversing the tree is not simple (since
c*****s
发帖数: 214
2

DO NOT write handlers yourself, we already have excellent SAXParsers. Besides,
we have lots of tools based on that.
Why does performance of walking tree suck? Opening a file means walking
character by character.
DOM is based on SAX. SAX implements DOM.
Sure, everybody do this. Check out what other people is doing.
Yes. Actually you did it too without knowing it. Many software is doing
something with XML including windows, we just don't care.
Xerces, XML4J and JDOM(not follows standards from SUN

【在 c*****t 的大作中提到】
: 【 以下文字转载自 Java 讨论区 】
: 【 原文由 coconut 所发表 】
: All of the following refer to parsing XML, not writing XML document
: itself.
: I went through Sun's XML tutorial using SAX and have some
: questions.
: 1. Does one really write those handlers by hand? It is just insane.
: How in the world does one differentiate different elements since they
: are just poured in to the same handler. if tree can work, but then
: the performance can suck bad. DOM is slightly simpler, but still

1 (共1页)
进入XML版参与讨论
相关主题
XML 结构xml parser
XMLSolutions 发布XMLZip.SAX and DOM parsers
Perl XML FAQ--3Any APIs for handling XML?
Refresh XMLDOM problem[转载] a question on XML parser
[转载] XML parsing problemHow to parse DTD structure?
one simple questionAbout XML parser
[转载] help! XML parse problem从哪里开始学习XML?
xml parser?兄弟们给介绍一本经典的XML书吧
相关话题的讨论汇总
话题: xml话题: sax话题: dom话题: does话题: tree