java: what's new in tiger(jdk1.5) xml
2004-10-01 11:11
489 查看
大概看了一下:
1. DOM3 support
1.1 支持Element取得对应Schema定义,方便UI画面构造
1.2 支持Element支持绑定UserObject
2. 支持XPath
3. 支持schema(还没看到实现)
从测试看,在内存中构造/操作Bean和DOM的速度相差无几,内存占用也没差别.
DOM天然支持树型,支持Xpath查询,支持灵活的xslt输出.
如果用bean包装Element,应该得到更好的灵活性.
关于复杂bean的查询,除了用dom+xpath,jakarta项目中的jxpath支持用xpath+bean,酷吧?!
不过xpath不是万金油,从目前版本的tiger测试看,xpath效率很差,1000次查询3秒多,有待优化.
另外dom中有getElementsByTagName方法,返回所有子孙节点,为什么没有getChildrenByTagName?是不是有什么说法?个人觉得后者更常用
1. DOM3 support
1.1 支持Element取得对应Schema定义,方便UI画面构造
1.2 支持Element支持绑定UserObject
2. 支持XPath
3. 支持schema(还没看到实现)
从测试看,在内存中构造/操作Bean和DOM的速度相差无几,内存占用也没差别.
DOM天然支持树型,支持Xpath查询,支持灵活的xslt输出.
如果用bean包装Element,应该得到更好的灵活性.
关于复杂bean的查询,除了用dom+xpath,jakarta项目中的jxpath支持用xpath+bean,酷吧?!
不过xpath不是万金油,从目前版本的tiger测试看,xpath效率很差,1000次查询3秒多,有待优化.
另外dom中有getElementsByTagName方法,返回所有子孙节点,为什么没有getChildrenByTagName?是不是有什么说法?个人觉得后者更常用
相关文章推荐
- Garbage Collectors – Serial vs. Parallel vs. CMS vs. G1 (and what’s new in Java 8)
- [android] (new buttons in java not in xml) share onclick in one activity,
- Garbage Collectors – Serial vs. Parallel vs. CMS vs. G1 (and what’s new in Java 8)
- What's New in Eclipse 3.2 Java Development Tools
- What's New in the XML in a Nutshell Third Edition
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- What's New in RAD Studio (C++Builder 2007)
- How to Parse or Read XML File in Java >> XML Tutorial Example
- What is Instance Initializer in Java?
- XML document processing in Java using XPath and XSLT
- exception http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
- http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed wit
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- Drag and Drop: New Data Transfer Capabilities in the JavaTM 2 Platform, Standard Edition (J2SETM), version 1.4
- what's new in Biztalk 2006 R2
- What is CountDownLatch in Java
- Oracle Database 10g XML & SQL: Design, Build & Manage XML Applications in Java, C, C++ & PL/SQL
- what is time complexity of concatenating two int in java example
- Error unmarshalling xml in java-8 secure-processing org.xml.sax.SAXNotRecognizedException
- Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serializer/TreeWalker