如何使用文件处理获取Xml解析的C ++代码? [英] How to get c++ code for Xml parsing using file handling ?
本文介绍了如何使用文件处理获取Xml解析的C ++代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<customerinfo>
<customerid>1001</customerid>
<customername>Sumit Enterprises</customername>
<city>Bangalore</city>
<country>India</country>
<contactperson>Sunil</contactperson>
<contactno>+91-9876543210</contactno>
</customerinfo>
而使用c ++文件处理的Outpuut将如下所示:
1001
住友企业
班加罗尔
印度
苏尼尔
+ 91-9876543210
And Outpuut will be as follows using c++ file handling:
1001
Sumit Enterprises
Bangalore
India
Sunil
+91-9876543210
推荐答案
您可以将MSXML
用于 ^ ]提供了一些示例.
You may use MSXML
for the purpose the documentation[^] features some examples.
您也可以尝试 ^ ],它非常易于使用.
You could also try XmlLite[^], which is very simple to use.
这篇关于如何使用文件处理获取Xml解析的C ++代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文