JAVA处理XML整理

Xml和Json是很重要的数据格式,使用Java处理XML相关的有:
SAX
DOM
JDOM
DOM4J
XSLT
XPath
JAXP
XERCES

XML库 有 JAXP 、DOM4J(第三方)、JDOM (第三方)
XML解析思想:SAX(基于事件)、DOM(DOM树解析)

W3C 针对xml的技术:
XSLT ,XPath属于 XSLT中的技术,XPath用于查找XML元素
Xerces 是XML中的 Parser(解析器), 另外一个 XML解析器是Crimson

JAXP 是JDK中自带的XML处理方法,是一整套的解决方案。整合了XML Parser、XSLT 等 技术。当然 第三方库DOM4J可以和XPath 整合,DOM4J 与XPath整合可以用到jaxen这个库,也还可以 整合JAXP 提供的XPath技术
Note:
1. Jaxen
第三方开源 XPath库(API)
2. Saxon
第三方开源XSLT和XQuery Processor
3. Xalan
develops and maintains libraries and programs that transform XML documents using XSLT standard stylesheets
参考:
1. http://blog.sina.com.cn/s/blog_4cc16fc50100b8ep.html
2. http://blog.csdn.net/fightfaith/article/details/50302437
3. https://dom4j.github.io/
4. https://stackoverflow.com/questions/12480046/whats-the-difference-of-jaxp-jdom-dom4j-and-xerces

猜你喜欢

转载自blog.csdn.net/jjf09/article/details/79448902