首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于DOM树的HTML转换为XML的方法
引用本文:黄伟,刘娟.一种基于DOM树的HTML转换为XML的方法[J].数字社区&智能家居,2006(20).
作者姓名:黄伟  刘娟
作者单位:武警芜湖市消防支队 安徽芜湖241000(黄伟),安徽广电信息网络股份有限公司 安徽合肥230088(刘娟)
摘    要:文章分析了HTML和XML的特点、论述了HTML向XML转换的必要性、介绍了转换的有关原理,采用了基于把HTML文档解析为DOM树形成节点信息,然后进行深度遍历的方法对各节点信息进行抽取映射为XML结构的信息,以达到转换为XML文档的目的。

关 键 词:DOM树  HTML  转换  XML

A Method of Conversion from HTML to XML Based on DOM Tree
HUANG Wei,LIU Juan.A Method of Conversion from HTML to XML Based on DOM Tree[J].Digital Community & Smart Home,2006(20).
Authors:HUANG Wei  LIU Juan
Affiliation:HUANG Wei1,LIU Juan2
Abstract:The paper analyses the characteristics of HTML and XML, discusses the significances and related principles, and uses a method of parsing the HTML documents to DOM tree, and searching it by depth to extract the information from every nodes and map to the XML, thereby to attain the aim of conversion the HTML to XML.
Keywords:DOM tree  HTML  Conversion  XML
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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