如何将整个 xml 文件源存储为 C++ 中的字符串 [英] How to store entire source of xml file as a string in c++

查看:26
本文介绍了如何将整个 xml 文件源存储为 C++ 中的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

xml 只能在代码中作为外部链接引用,例如.www.etc.com".我希望能够从某些网站的页面源中提取某些单词,但首先我需要将源内容转储到字符串或 CString 中.感谢您的帮助

The xml can only be referred to in the code as an external link for eg. "www.etc.com". I want to be able to extract certain words from the page source of certain websites, but first i need to dump the source content into a string or CString. Thanks for any help

推荐答案

我认为您要问的是如何从 Internet 获取数据.我找到了 this 线程和一些 源代码 与此相关.

I think what you are asking is how to fetch data from the internet. I found this thread and some source code regarding this.

这篇关于如何将整个 xml 文件源存储为 C++ 中的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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