我怎样才能读取XML文件转换成在C缓冲区? [英] How can I read an XML file into a buffer in C?
本文介绍了我怎样才能读取XML文件转换成在C缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想读一个XML文件到的char *缓冲区
用C
I want to read an XML file into a char *buffer
using C.
什么是做到这一点的最好方法是什么?
What is the best way to do this?
我应该如何开始?
推荐答案
在读取文件的内容到一个单一的,简单的缓冲的真正的,你想做什么? XML文件一般有被解析,你可以像的libxml2 库做到这一点,只给一个例子(但值得注意的是,在C实现)。
Is reading the contents of the file into a single, simple buffer really what you want to do? XML files are generally there to be parsed, and you can do this with a library like libxml2, just to give one example (but notably, is implemented in C).
这篇关于我怎样才能读取XML文件转换成在C缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文