如何在c ++中使用msxml3读取多级xml文件 [英] How to read a multilevel xml file using msxml3 in c++

查看:93
本文介绍了如何在c ++中使用msxml3读取多级xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我白化一个简化的代码来读取给定的波纹管xml并将值存储到结构中。我是xml的新手。 msxml看起来太复杂了。



Can anyone help me to white a simplified code to read the given bellow xml and store the value into a structure. I m new to xml. msxml looks too complicated.

<?xml version="1.0"?>
<ALL>
	<JP>
		<age>31</age>
		<weight>66</weight>
		<name>sam</name>
		<iter>2</iter>
		<Lists>
			<l1>
				<idd>111</idd>
				<ide>123</ide>
			</l1>
			<l2>
				<idd>111</idd>
				<ide>123</ide>
					
			</l2>				
		</Lists>	
			
	</JP>
		
</ALL>

推荐答案

尝试XmlLite: https://msdn.microsoft.com/en-us/library/ms752861(v = vs.85).aspx [ ^ ]。
Try XmlLite: https://msdn.microsoft.com/en-us/library/ms752861(v=vs.85).aspx[^].


这篇关于如何在c ++中使用msxml3读取多级xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆