dongshai8330 2015-11-05 15:36
浏览 1454

如何在golang中将xml文件转换为map [string] interface {}? [重复]

This question already has an answer here:

I know the method Unmarshal in encoding/json can convert a json to map[string]interface{}, so I also want to do same thing with encoding/xml, but it failed.

It seems encoding/xml do not have the similar method, do any one know how to solve it? I don't want to define struct for the xml content, since the xml is generated by many different services.

Thanks in advance.

</div>
  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 树莓派与pix飞控通信
    • ¥15 自动转发微信群信息到另外一个微信群
    • ¥15 outlook无法配置成功
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题