Redian新闻
>
哪位能大概介绍一下XML的那些API
avatar
哪位能大概介绍一下XML的那些API# Java - 爪哇娇娃
p*p
1
太多了,搞不清楚哪个是干什么的,JDK自身还有,还和其他包互相冲突
DOM,JDOM,Crimson,Xerces,JAXB,SAX....etc
avatar
c*t
2
SAX = a lexer that parse an XML document into tokens and generate
events on the token recieved. As you can imagine, there will
be continuous streams of events. Thus, some call SAX stream
or SAX event driven etc.
The SAX engine provided by JDK sucks. No hooks for custom entities
unless the XML document explicitly contains the DTD spec.
DOM = a generated tree of objects (think of DOM tree for html elements
in web browser, only this is for all XML documents).
Crimson/Xerc

【在 p***p 的大作中提到】
: 太多了,搞不清楚哪个是干什么的,JDK自身还有,还和其他包互相冲突
: DOM,JDOM,Crimson,Xerces,JAXB,SAX....etc

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