用于解析XML并将其置于CSV格式的C / C ++解决方案 [英] C/C++Solution for Parsing the XML and Putting it in CSV format

查看:91
本文介绍了用于解析XML并将其置于CSV格式的C / C ++解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Folks,

我需要一个将XML转换为CSV的代码。语言可能是C / C ++。

真正陷入困境,对网络中所需语言没有帮助。



解决方案将是一个很好的。



谢谢。

Hello Folks,
I need a code for converting XML to CSV. The Language may be C/C++.
Really stuck and no help for the required language in net.

A soluition will be a great.

Thanks.

推荐答案





有很多方法可以实现这个目标。很高兴知道即使没有在C ++中编程,你也可以。那么,让我们看看可能性:



- 首先你可以通过XSL转换来实现它,通过它可以将任何XML转换为HTML,TXT,CVS或XML 。请参阅 W3C School MSDN



- 另一种方法是使用come library for XML。在C ++或Visual Basic中,您可以使用MSXML taht,这样您就可以使用DOM或SAX在应用程序中处理和遍历XML。



- 可能是组合之前的观点。您只需创建XSL trasformation,您的应用程序就会将它(通过使用MSXML)应用于XML。



希望这会有所帮助,

JK
Hi,

there are many ways you can achive this. It is good to know that you can make it even without programing in C++. So, let''s see the possibilities:

- First you can make it by XSL transformation by which you can convert any XML to HTML, TXT, CVS or XML. See W3C School or MSDN.

- Another way is to use come library for XML. In C++ or Visual Basic you can use MSXML taht will give you the possibility to use DOM or SAX for processing and traversing XML in your application.

- Thisrd possibility is combination of previous points. You just create XSL trasformation and your application will apply it (by using MSXML) to the XML.

Hope this helps,
J. K.


我可能会使用由 MSXML 提供的 DOM 来完成任务,拥有一个请参阅使用C / C ++中的DOM编程 [ ^ ]。但是,有其他选择,例如 XmlLite [ ^ ]或 SAX API [ ^ code> MSXML 本身的^ ]。还有许多开源 XML 库。
I would probably use DOM provided by MSXML for the task, have a look at Program with DOM in C/C++[^]. There are alternatives, however, like for instance XmlLite[^] or the SAX API[^] of the MSXML itself. There are also many open source XML libraries.


这篇关于用于解析XML并将其置于CSV格式的C / C ++解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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