[转载] XML question# XML - WWW明日之星
c*t
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
【 原文由 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