光通信研究, 2008 (4): 25, 网络出版: 2011-03-04  

用C++语言实现XML文件解析的一种方案

A scheme for implementation of DOM parsing using C++
作者单位
光纤通信技术和网络国家重点实验室 武汉邮电科学研究院, 湖北 武汉430074
摘要
近年来, 可扩充标记语言(XML)技术的应用越来越广泛, 实现XML文件解析的方式也是多种多样。文章参照万维网联盟(W3C)定义的文档对象模型(DOM)标准接口文档, 介绍了一种在标准C++语言的基础上实现DOM接口的方案, 该方案不仅达到了用DOM接口的方式解析XML文件的目的, 还避免了一些常用的XML解析器存在的解析速度慢的问题。
Abstract
In recent years, XML technology has found increasingly wider applications and there have been various ways of XML document parsing. This article introduces a scheme for the implementation of the DOM interface by using the standard C++ language with reference to the technical documents defined by W3C DOM Level 3 Core. After this scheme, the XML document can be parsed and the problem of low parsing speed that has been found in the commonly used XML parsers is avoided.

周宇, 吴涛. 用C++语言实现XML文件解析的一种方案[J]. 光通信研究, 2008, 34(4): 25. Zhou Yu, Wu Tao. A scheme for implementation of DOM parsing using C++[J]. Study On Optical Communications, 2008, 34(4): 25.

关于本站 Cookie 的使用提示

中国光学期刊网使用基于 cookie 的技术来更好地为您提供各项服务,点击此处了解我们的隐私策略。 如您需继续使用本网站,请您授权我们使用本地 cookie 来保存部分信息。
全站搜索
您最值得信赖的光电行业旗舰网络服务平台!