if xml has such content:
<mode fullscreen="true">mod xxxmod>
use boost property code:
get("mod..fullscreen")
Oh, Yeah, It's agly!
用Boost解析XML,很方便,比较纠结都是解析XML都属性,Boost都文档有点差劲,经研究,获取属性都方式如下:如xml文件内容如下<mode fullscreen="true">mod xxxmod>获取属性都方式是:get("mod..fullscreen") 详见文档:
阅读(3754) | 评论(0) | 转发(0) |