首页 | 官方网站   微博 | 高级检索  
     

XML树型结构数据转换成JTree图形的一种方法
引用本文:张白一,袁琴琴.XML树型结构数据转换成JTree图形的一种方法[J].微计算机应用,2005,26(5):632-634.
作者姓名:张白一  袁琴琴
作者单位:长安大学信息工程学院,西安710064
摘    要:首先探讨了利用XML文件存储树型结构数据的直观表示方式。在此基础上用Java编程实现了解析XML文件生成DOM树的方法,最终通过深度优先遍历算法将DOM树转换成JTree树。从而实现了用JTree树直观地显示DOM树,为树型结构数据的图形化表示提供了便利。

关 键 词:树型结构  XML  文档对象模型  JTree  图形化  数据转换  DOM树  结构数据  表示方式  文件存储
收稿时间:2004-08-27
修稿时间:2004-08-27

A Method to Transform The XML Tree Structured Data into Jtree Graph
ZHANG Baiyi, YUAN Qinqin.A Method to Transform The XML Tree Structured Data into Jtree Graph[J].Microcomputer Applications,2005,26(5):632-634.
Authors:ZHANG Baiyi  YUAN Qinqin
Abstract:This paper discuss the method using XML file to store the tree structured data first, and then we applying the Java to program the DOM tree which parses the XML files, on the last we use depth--first search algorithm to traverse the DOM tree and to create the JTree. It realizes the JTree to show the DOM tree thereby, and provides convenience for the tree structured data to show with graphics.
Keywords:Tree structure  XML  DOM  JTree
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号