一.MsXml创建XML文档示例
生成的china.xml文档内容:
二.MsXml解析XML文档示例
运行结果如下:
root = China
child[1] of <China>: <Continent>
child[3] of <China>: <Population>
child[5] of <China>: <Municipality>
文档中<Population>共有5个
根节点下的<Population>子节点值为1,296
Attr[0] of <Population>: Units = Million Person
Attr[1] of <Population>: StatisticalYear = 2000
childs of <Municipality>: BeiJing
childs of <Municipality>: Area
childs of <Municipality>: Population
childs of <Municipality>: TianJin
childs of <Municipality>: Area
childs of <Municipality>: Population
childs of <Municipality>: ShangHai
childs of <Municipality>: Area
childs of <Municipality>: Population
childs of <Municipality>: ChongQing
childs of <Municipality>: Area
childs of <Municipality>: Population
child[0] of <Municipality>: BeiJing
child[1] of <Municipality>: TianJin
child[2] of <Municipality>: ShangHai
child[3] of <Municipality>: ChongQing
<TianJin>的父节点为<Municipality>
child[0] of <TianJin>: Area
child[1] of <TianJin>: Population
<TianJin>的兄节点为<BeiJing>
<TianJin>的弟节点为<ShangHai>
分享到:
相关推荐
msxml解析xml同名节点msxml解析xml同名节点
利用MSXML解析xml文件实例 利用MSXML解析xml文件实例
XML解析,有MSXML解析,和CMauk解析两种实例
利用MSXML解析XML文档
利用利用MSXML解析XML文本-VCer_net VC代码 VC开源 VC文章 VC工具 VC知道 VC词典 VC论坛.htm
此代码为MSXML C++解析XML,功能是显示并保存XML文档,简单实用!
C++ 解析XML(MSXML),此代码用于显示XML文档,并读取指定元素内容,适合初学者!
用DOM-MSXML实现解析xml文件,可以遍历整个xml文件,并将结果以树的形式显示出来,使xml文件的结构一目了然。
MSXML解析XML文档材料
MSXML解析XML文档.doc解析XML文档.doc
C++ MSXML2 创建xml树结构 读写操作源码
用DOM-MSXML实现解析xml文件,可以遍历整个xml文件,并将结果以树的形式显示出来,使xml文件的结构一目了然
利用VC++与MSXML解析XML文档--是vc写的实例
MSXML解析XML文档(源码).
vc中xml的应用,利用MSXML解析XML文档。
PB9解析xml(封装好的自定义对象,源码)
利用VC++与MSXML解析XML文档 .rar
微软的xml语言解析器
开发环境为VC,基于对话框,用msxml组件解析XML文档,运用递归循环的方法实现树结构,支持中文,可以运行的一个实例。