节点文献
目录树的XML文档的自动生成
Automatic Generation of XML Document for Directory Tree
【摘要】 手工编辑生成XML数据文档不能适应快速大量的数据交换要求,也很难满足灵活多变的应用需求。并且很多时候尽管代码结构类似,却不能直接重用,使得每次工作都从零开始。文中分析了windows的文件系统中目录树和文件特点,讨论了使用递归算法遍历文件系统的方法,最终基于VS平台使用C#语言完成了描述目录树的XML文档的自动生成系统。所产生的XML文档详细地对目录文件信息进行描述,方便在不同平台下的数据处理。
【Abstract】 It is very difficult for XML document generated manually to meet the requirements for fast large amounts of data exchange,and to the flexible and diverse application requirements.Although codes are nearly resemble each other,they cannot be reused directly,which makes every work from scratch.This paper analyzed the characteristics of directory tree on Windows file system,discusses the method traversing the file system using recursion algorithm,and developed the system based on VS platform using c#language,which can automatically Generate XML Document of Directory Tree.These XML documents include the related information of directory tree,and provide convenience for data processing in different platform.
【Key words】 directory tree; XML description; automatic generation of document; C#;
- 【文献出处】 电脑知识与技术 ,Computer Knowledge and Technology , 编辑部邮箱 ,2016年34期
- 【分类号】TP311.1
- 【下载频次】54