由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - StAX, do you use it?
相关主题
试着比较 JAXB/StAX/XStream/SAX哪位能大概介绍一下XML的那些API
JAXBJava处理XML
请问关于 Java XML processing我自己编了个Java面试题
Java XML parser的问题[转载] 如何得到machine specific的信息
How to delete an entry in JAR?self-modifying code?
[转载] a question on XML parserjava virtual machine 急问!!在线等
Error handling in Jelly, SwixML and othersthread independent on a single-cpu machine?
[ZT] choose your java xml parser[合集] a question about data structure
相关话题的讨论汇总
话题: stax话题: element话题: when话题: state话题: machines
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
When I looked at StAx, I couldn't help wondering. How many people
actually liked to build state machines by hand? Or my understanding
is wrong? Anyone used it?
Thanks.
t*******e
发帖数: 684
2
Are you talking about the XML stream parser? Why do you link it up with
state machines?
c*****t
发帖数: 1879
3
No, what I mean is that when I read the tutorial, it has pieces like:
public final static String getEventTypeString(int eventType)
{
switch (eventType)
{
case XMLEvent.START_ELEMENT:
return "START_ELEMENT";
case XMLEvent.END_ELEMENT:
..
}
}
This is building a state machine (manually build rather than generated
in this case).
Just like using SAX, doesn't matter that it is event driven, you are
still building a state machine by hand.

【在 t*******e 的大作中提到】
: Are you talking about the XML stream parser? Why do you link it up with
: state machines?

1 (共1页)
进入Java版参与讨论
相关主题
[合集] a question about data structureHow to delete an entry in JAR?
Simple question: delete element from collection on condition?[转载] a question on XML parser
一个 skip list 面试题Error handling in Jelly, SwixML and others
eclipse 不认 namespace 吗? (转载)[ZT] choose your java xml parser
试着比较 JAXB/StAX/XStream/SAX哪位能大概介绍一下XML的那些API
JAXBJava处理XML
请问关于 Java XML processing我自己编了个Java面试题
Java XML parser的问题[转载] 如何得到machine specific的信息
相关话题的讨论汇总
话题: stax话题: element话题: when话题: state话题: machines