goxml2json:用Go编写的XML到JSON转换器(无模式,无结构)
goxml2json
将XML转换为JSON的Go软件包
安装
go get -u github.com/basgys/goxml2json
输入
import github.com/basgys/goxml2json
用法
代码示例
package main
import (
"fmt"
"strings"
xj "github.com/basgys/goxml2json"
)
func main () {
// xml is an io.Reader
xml := strings . NewReader ( `<?xml version="1